author | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Aug 2007 21:12:14 +0000 (14:12 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 15 Aug 2007 21:21:23 +0000 (14:21 -0700) | ||
commit | a4882c27f8b3793d94b03fd503a0c67ad9772cf6 | |
tree | 6a782d1f7d9a99d666c2120eff56949dfb7779d3 | tree | snapshot |
parent | 93969438dca50c7f0039fcf35e7ab82776d4122f | commit | diff |
Fix "git add -u" data corruption.
This applies to 'maint' to fix a rather serious data corruption
issue. When "git add -u" affects a subdirectory in such a way
that the only changes to its contents are path removals, the
next tree object written out of that index was bogus, as the
remove codepath forgot to invalidate the cache-tree entry.
Reported by Salikh Zakirov.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This applies to 'maint' to fix a rather serious data corruption
issue. When "git add -u" affects a subdirectory in such a way
that the only changes to its contents are path removals, the
next tree object written out of that index was bogus, as the
remove codepath forgot to invalidate the cache-tree entry.
Reported by Salikh Zakirov.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-add.c | diff | blob | history | |
t/t2200-add-update.sh | diff | blob | history |