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

Re: [PATCH] p5551: fix repeated runs with update-ref --no-deref

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 28, 2026, 18:30 UTC
Message-ID
<xmqqcxtxmdor.fsf@gitster.g>
In-Reply-To
<20260928040511.GA498426@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 22 quoted lines
> On Sat, Sep 26, 2026 at 02:06:48PM -0400, Jon Simons wrote:
>
>> Update p5551-fetch-rescan.sh to pass `--no-deref` when deleting child
>> test refs before each measured `git fetch`.  Otherwise, for repeated
>> runs, the second iteration will fail with:
>> 
>>     fatal: multiple updates for 'refs/remotes/origin/master' (including
>>     one via symref 'refs/remotes/origin/HEAD') are not allowed
>> 
>> Starting with 3f763ddf28 (fetch: set remote/HEAD if it does not exist,
>> 2024-11-22), `git fetch` instantiates the HEAD symref.
>> 
>> The test, introduced in 7893bf1720 (p5551: add a script to test fetch
>> pack-dir rescans, 2017-11-20), predates that.
>
> Thanks, the explanation and patch both make sense.
>
> This test could probably benefit from using --setup (which also didn't
> exist back when this test was written). But that's nothing new, and well
> outside the scope of your patch.
>
> -Peff
Thanks for writing and reviewing.  Will queue and mark for 'next'.
Previous: Jeff King
Message 3 of 3 in “p5551: fix repeated runs with update-ref --no-deref”
  1. p5551: fix repeated runs with update-ref --no-derefJon Simons, Sep 26, 2026
  2. Jeff KingSep 28, 2026
  3. Junio C HamanoSep 28, 2026

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.