Code

Avoid ambiguous error message if pack.idx header is wrong
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Tue, 14 Aug 2007 19:42:37 +0000 (16:42 -0300)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Aug 2007 05:20:13 +0000 (22:20 -0700)
commiteef427a09ce7fcbdc54c73ae363cbab331eccd88
treeb222f393fdaeac70616efd80b7c1571d458fe7da
parentb798671fa935492ce511766bc99fb26b2892499b
Avoid ambiguous error message if pack.idx header is wrong

Print the index version when an error occurs so the user
knows what type of header (and size) we thought the index
should have had.

Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c