git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Fix zero-object version-2 packs

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 27, 2007, 00:41 UTC
Message-ID
<7vtzsuw7n9.fsf@assigned-by-dhcp.pobox.com>
In-Reply-To
<alpine.LFD.0.98.0706261428420.8675@woody.linux-foundation.org>
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'.
Previous: Linus Torvalds
Message 2 of 2 in “Fix zero-object version-2 packs”
  1. Linus TorvaldsJun 26, 2007
  2. Junio C HamanoJun 27, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.