Page 1 of 1

egit git status error on gitignore

PostPosted: Sat Jul 25, 2015 12:10 pm
by japink.m
I am working with gitlab, git and egit. After configuring my .gitignore file I get error messages after each change or save in eclipse. I tried new workspace, complete fresh Servoy install etc. Nothing helps.
The error I get is:

An internal error occurred during: "Computing Git status for repository oostvoorn".
Unexpected internal error near index 11
\.metadata\

git status from the command line works fine.

Any idea how i can fix this?

my .gitignore looks like

.gitignore
#metadata files#
*./metadata/
.metadata/
.metadata\
*metadata/
*metadata\
*\.metadata\
#log files#
*.log

Re: egit git status error on gitignore

PostPosted: Sat Jul 25, 2015 4:27 pm
by ROCLASI
Hi,

Perhaps it's the backslash that throws it off? Backslashes are (mostly) used to escape control characters.
In my ignore file I just use '.metadata' (without the quotes) to prevent my eclipse metadata to be tracked. Perhaps you should just use that.

Also interesting that you ignore your gitignore file, any reason why you don't want to track that file ?

Re: egit git status error on gitignore

PostPosted: Sat Jul 25, 2015 10:18 pm
by japink.m
Great Robert. That did the trick. I just gathered together my .gitignore by internet and servoy forum. I had no particular reason for excluding .gitignor. It's just what I found. It's probably better to include, so a new check out has ignore properties set.

seams .metadata is enough.