author | Nicolas Pitre <nico@cam.org> | |
Wed, 29 Oct 2008 23:02:48 +0000 (19:02 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 2 Nov 2008 23:22:35 +0000 (15:22 -0800) | ||
commit | 03d660150cbc80cd7d2ec90c3c4e6ce563295e3a | |
tree | 97c2db823d00d000136895a205d2cc8c0caa3ea0 | tree | snapshot |
parent | 3d77d8774fc18216f18efa5c5907f73b22d61604 | commit | diff |
make check_object() resilient to pack corruptions
The check_object() function tries to get away with the least amount of
pack access possible when it already has partial information on given
object rather than calling the more costly packed_object_info().
When things don't look right, it should just give up and fall back to
packed_object_info() directly instead of die()'ing.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The check_object() function tries to get away with the least amount of
pack access possible when it already has partial information on given
object rather than calling the more costly packed_object_info().
When things don't look right, it should just give up and fall back to
packed_object_info() directly instead of die()'ing.
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c | diff | blob | history |