check_packed_git_idx(): check integrity of the idx file itself.
authorJunio C Hamano <junkio@cox.net>
Fri, 23 Dec 2005 06:57:20 +0000 (22:57 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 23 Dec 2005 06:57:20 +0000 (22:57 -0800)
commit797bd6f490c91c07986382b9f268e0df712cb246
tree7374b2c056ab90fd02d9eee137b72debd1f119bf
parent5f94c730f31862c7f500173ee3a9d141c4730f0b
check_packed_git_idx(): check integrity of the idx file itself.

Although pack-check.c had routine to verify the checksum for the
pack index file itself, the core did not check it before using
it.

This is stolen from the patch to tighten packname requirements.

Signed-off-by: Junio C Hamano <junkio@cox.net>
sha1_file.c
t/t5300-pack-object.sh