Re: git blame crashes with internal error
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Oct 14, 2007, 16:37 UTC
- Message-ID
- <20071014163702.GA2776@steel.home>
- In-Reply-To
- <20071014143628.GA22568@atjola.homenet>
Björn Steinbrink, Sun, Oct 14, 2007 16:36:28 +0200:
Show 11 quoted lines
> Hi Junio, > > git blame just decided to crash on me, when I tried to use it while > resolving a merge conflict. Interesting is probably, that it crashes > when given the filename of a file that is not _directly_ affected by the > merge, but contains code that originates from a file that caused > conlicts. > > Error message is: > fatal: internal error: ce_mode is 0 >
It is not crashing. It is just not handling unexpected situation properly:
$ testcase.sh
...
Switched to branch "foo"
CONFLICT (delete/modify): file1 deleted in HEAD and modified in master. Version master of file1 left in tree.
Automatic merge failed; fix conflicts and then commit the result.
fatal: internal error: ce_mode is 0
$ git ls-files --cached --stage
100644 72139f38953679bd19b3a7938c479d73c1aa7b59 1 file1
100644 3181f904ce3f9364b08524edd262a7a2ac766c9c 3 file1
100644 24e1ea80d6dcc497f60597b2a6d7cf65ecaa958a 0 file2See? There is an unresolved merge.
The question is, what's the problem...