From: Shawn Pearce Date: Mon, 21 Aug 2006 07:10:02 +0000 (-0400) Subject: Verify we know how to read a pack before trying to using it. X-Git-Tag: v1.4.3-rc1~213 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/da7560110f91088ee2a664e98f75ff54e0d9e1e1?ds=inline;hp=da7560110f91088ee2a664e98f75ff54e0d9e1e1 Verify we know how to read a pack before trying to using it. 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 Signed-off-by: Junio C Hamano ---