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

Re: [BUG REPORT] t5322: demonstrate a pack-objects bug

From
Derrick Stolee <stolee@gmail.com>
Date
Nov 28, 2018, 19:55 UTC
Message-ID
<8774b686-e399-975f-b033-421b3ec1427d@gmail.com>
In-Reply-To
<20181128194536.57019-1-dstolee@microsoft.com>
On 11/28/2018 2:45 PM, Derrick Stolee wrote:
Show 12 quoted lines
> I was preparing a new "sparse" algorithm for calculating the
> interesting objects to send on push. The important steps happen
> during 'git pack-objects', so I was creating test cases to see
> how the behavior changes in narrow cases. Specifically, when
> copying a directory across sibling directories (see test case),
> the new logic would accidentally send that object as an extra.
>
> However, I found a bug in the existing logic. The included test
> demonstrates this during the final 'git index-pack' call. It
> fails with the message
>
> 	'fatal: pack has 1 unresolved delta'

I realize now that I've gone through this effort that the problem is me (of course it is).

> +	git pack-objects --stdout --thin --revs <packinput.txt >nonsparse.pack &&

Since I'm packing thin packs, the index operation is complaining about deltas. So, I need to use a different mechanism to list the objects in the pack (say, 'git verify-pack -v').

Sorry for the noise!
Thanks,
-Stolee
Previous: Derrick Stolee
Message 2 of 2 in “[BUG REPORT] t5322: demonstrate a pack-objects bug”
  1. Derrick StoleeNov 28, 2018
  2. Derrick StoleeNov 28, 2018

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.