Don't expect verify_pack() callers to set pack_size
commit4277c6709d1976ee5cef33b7e415ae0dded87090
authorMike Hommey <mh@glandium.org>
Sun, 18 Jan 2009 08:04:26 +0000 (18 09:04 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 6 Jun 2009 17:56:27 +0000 (6 10:56 -0700)
tree09c03adf122b45787e4011c4d7cf522f0e32452f
parent1b1b7b235b040f27952d48ab8811c958a1f6d052
Don't expect verify_pack() callers to set pack_size

Since use_pack() will end up populating pack_size if it is not already set,
we can just adapt the code in verify_packfile() such that it doesn't require
pack_size to be set beforehand.

This allows callers not to have to set pack_size themselves, and we can thus
revert changes from 1c23d794 (Don't die in git-http-fetch when fetching packs).

Signed-off-by: Mike Hommey <mh@glandium.org>
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
pack-check.c