Skip to content
  • Nicolas Pitre's avatar
    make verify-pack a bit more useful with bad packs · 62413604
    Nicolas Pitre authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarNicolas Pitre <nico@cam.org>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    62413604