Verify we know how to read a pack before trying to using it.
authorShawn Pearce <spearce@spearce.org>
Mon, 21 Aug 2006 07:10:02 +0000 (03:10 -0400)
committerJunio C Hamano <junkio@cox.net>
Tue, 22 Aug 2006 03:24:56 +0000 (20:24 -0700)
If the pack format were to ever change or be extended in the future
there is no assurance that just because the pack file lives in
objects/pack and doesn't end in .idx that we can read and decompress
its contents properly.

If we encounter what we think is a pack file and it isn't or we don't
recognize its version then die and suggest to the user that they
upgrade to a newer version of GIT which can handle that pack file.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
No differences found