Re: Fix zero-object version-2 packs
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 19 quoted lines
> 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>
> ---
>
> Tjernlund <tjernlund@tjernlund.se> wrote:
>>
>> [SNIP patch]
>>
>> Tested your patch and the error went away, many thanks
Thank you very much to both of you. Will be in 'maint'.