author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 19 Apr 2010 14:23:07 +0000 (07:23 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Apr 2010 00:56:13 +0000 (17:56 -0700) | ||
commit | 9b0aa728705439ca4b4e7ec845f79f8487059320 | |
tree | 519fe764ab29f4ab7f87c9baccff601a5e2a9313 | tree | snapshot |
parent | fa5fc15d6ecfb9452c578bb4c80e98ccca12750c | commit | diff |
Extract verify_pack_index for reuse from verify_pack
The dumb HTTP transport should verify an index is completely valid
before trying to use it. That requires checking the header/footer
but also checking the complete content SHA-1. All of this logic is
already in the front half of verify_pack, so pull it out into a new
function that can be reused.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The dumb HTTP transport should verify an index is completely valid
before trying to use it. That requires checking the header/footer
but also checking the complete content SHA-1. All of this logic is
already in the front half of verify_pack, so pull it out into a new
function that can be reused.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-check.c | diff | blob | history | |
pack.h | diff | blob | history |