]> git.ipfire.org Git - thirdparty/git.git/commit - t/t2200-add-update.sh
Fix "git add -u" data corruption.
authorJunio C Hamano <gitster@pobox.com>
Wed, 15 Aug 2007 21:12:14 +0000 (14:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Aug 2007 21:21:23 +0000 (14:21 -0700)
commita4882c27f8b3793d94b03fd503a0c67ad9772cf6
tree6a782d1f7d9a99d666c2120eff56949dfb7779d3
parent93969438dca50c7f0039fcf35e7ab82776d4122f
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>
builtin-add.c
t/t2200-add-update.sh