Revision 6241360498eb811d4bb130328b1d13241c5e14b6 authored by Nicolas Pitre on 29 May 2008, 21:34:50 UTC, committed by Junio C Hamano on 02 June 2008, 06:25:38 UTC
When a pack gets corrupted, its SHA1 checksum will fail.  However, this
is more useful to let the test go on in order to find the actual
problem location than only complain about the SHA1 mismatch and
bail out.

Also, it is more useful to compare the stored pack SHA1 with the one in
the index file instead of the computed SHA1 since the computed SHA1
from a corrupted pack won't match the one stored in the index either.

Finally a few code and message cleanups were thrown in as a bonus.

Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent d2b3691
History
File Mode Size
sha1.c -rw-r--r-- 1.7 KB
sha1.h -rw-r--r-- 402 bytes
sha1_arm.S -rw-r--r-- 3.5 KB

back to top