Code

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 22:14:28 +0000 (14:14 -0800)
commitc5ced64578a82b9d172aceb2f67c6fb9e639f6d9
treece00f33992bbd7be504b6ba1c755fb1ffcca4542
parent1e80e0449248edb77b0fb9853f4a3404a599e207
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>
(cherry picked from 797bd6f490c91c07986382b9f268e0df712cb246 commit)
sha1_file.c
t/t5300-pack-object.sh