Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: Fix zero-object version-2 packs

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:18

Linus Torvalds [off-list ref] writes:
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 <redacted>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---

Tjernlund [off-list ref] wrote:
quoted
[SNIP patch]

Tested your patch and the error went away, many thanks
Thank you very much to both of you.  Will be in 'maint'.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help