Catch errors when writing an index that contains invalid objects.
authorJohannes Sixt <johannes.sixt@telecom.at>
Mon, 13 Nov 2006 13:50:00 +0000 (13:50 +0000)
committerJunio C Hamano <junkio@cox.net>
Mon, 13 Nov 2006 22:26:51 +0000 (14:26 -0800)
commit3d12d0cfbbda0feb6305d6c53f3cf9aae2330c4c
tree9456a5b78dc2991f7158e8e1c536aa0db1a7d8df
parent40cf043389ef4cdf3e56e7c4268d6f302e387fa0
Catch errors when writing an index that contains invalid objects.

If git-write-index is called without --missing-ok, it reports invalid
objects that it finds in the index. But without this patch it dies
right away or may run into an infinite loop.

Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Signed-off-by: Junio C Hamano <junkio@cox.net>
cache-tree.c
t/t0000-basic.sh