Re: fatal error when diffing changed symlinks
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 24, 2017, 17:53 UTC
- Message-ID
- <xmqqshn34gsh.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAC0icTZ87yeYndPFyjD4nkJBcw5SC-bgUJYbEzYqH7YhSFZvuQ@mail.gmail.com>
Christophe Macabiau <christophemacabiau@gmail.com> writes:
Show 20 quoted lines
> with the commands below, you will get : > >> fatal: bad object 0000000000000000000000000000000000000000 >> show 0000000000000000000000000000000000000000: command returned error: 128 >> > > I am using version 2.5.5 fedora 23 > > cd /tmp > mkdir a > cd a > git init > touch b > ln -s b c > git add . > git commit -m 'first' > touch d > rm c > ln -s d c > git difftool --dir-diff
A slightly worse is that the upcoming Git will ship with a rewritten "difftool" that makes the above sequence segfault. As either way is bad, I do not particularly think the rewritten one needs to be reverted (it would give "fatal: bad object" then, and would not fix your problem), but it needs to be looked at.
Thanks for a report.