diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2007-06-26 14:34:02 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-06-26 18:02:15 -0700 |
commit | 1164f1e48d7c8ed613e8a371ecfce27220606e09 (patch) | |
tree | 62c634bcc0572fdff04f5015d26deca21aa6dd56 /contrib | |
parent | Ignore submodule commits when fetching over dumb protocols (diff) | |
download | tgif-1164f1e48d7c8ed613e8a371ecfce27220606e09.tar.xz |
Fix zero-object version-2 packs
A pack-file can get created without any objects in it (to transfer "no
data" - which can happen if you use a reference git repo, for example,
or just otherwise just end up transferring only branch head information
and already have all the objects themselves).
And while we probably should never create an index for such a pack, if we
do (and we do), the index file size sanity checking was incorrect.
This fixes it.
Reported-and-tested-by: Jocke Tjernlund <tjernlund@tjernlund.se>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions