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

Re: Bad refspec messes up bundle.

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 30, 2018, 17:18 UTC
Message-ID
<xmqq370h4h4b.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<nycvar.QRO.7.76.6.1803301102430.5026@qfpub.tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 13 quoted lines
> Hi Luciano,
>
>> > Is this a bug? Should bundle allow providing multiple refspecs when
> ...
> I agree that it is a bug if a bundle file records a ref multiple times.
> Luciano, here are some pointers so you can fix it:
>
> - probably the best way to start would be to add a new test case to
>   t/t5607-clone-bundle.sh. The script *should* be relatively easy to
>   understand and imitate. The new test case would probably look somewhat
>   like this:
>
> 	test_expect_failure 'bundles must not contain multiple refs' '

s/multiple/duplicate/. It is not unusual for a bundle to record more than one ref; it is (1) useless and harmful to unsuspecting clients to record the same ref twice with the same value and (2) nonesnse to record the same ref twice with different value.

Other than that, the outline seems to go in the right general direction.

Previous: Johannes SchindelinNext: Johannes Schindelin
Message 4 of 7 in “Bad refspec messes up bundle.”
  1. Luciano JoublancMar 19, 2018
  2. Junio C HamanoMar 19, 2018
  3. Johannes SchindelinMar 30, 2018
  4. Junio C HamanoMar 30, 2018
  5. Johannes SchindelinMar 30, 2018
  6. Luciano JoublancMar 31, 2018
  7. Johannes SchindelinApr 3, 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.