make pack-objects a bit more resilient to repo corruption
authorNicolas Pitre <nico@fluxnic.net>
Fri, 22 Oct 2010 20:26:23 +0000 (16:26 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 22 Oct 2010 21:59:58 +0000 (14:59 -0700)
Right now, packing valid objects could fail when creating a thin pack
simply because a pack edge object used as a preferred base is corrupted.
Since preferred base objects are not strictly needed to produce a valid
pack, let's not consider the inability to read them as a fatal error.
Delta compression may well be attempted against other objects in the
search window. To avoid warning storms (we are in the inner loop of
the delta search window) a warning is emitted only on the first
occurrence.

Signed-off-by: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found