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

Re: [PATCH] test-bzr: Do not use unportable sed "\+"

From
Junio C Hamano <gitster@pobox.com>
Date
May 12, 2013, 03:14 UTC
Message-ID
<7vsj1svqi7.fsf@alter.siamese.dyndns.org>
In-Reply-To
<518EAB7C.3010508@web.de>
Torsten Bögershausen <tboegi@web.de> writes:
Show 19 quoted lines
> On 11.05.13 22:09, Junio C Hamano wrote:
>> Torsten Bögershausen <tboegi@web.de> writes:
>> 
>>> I did,
>>> the interesting thing is that the test passes with and without your patch.
>>> (After enabling  GIT_TEST_LONG and GIT_TEST_HTTPD in both cases)
>> 
>> Strange.  Do you see differences between the produced packed-refs
>> file?
>
> The original version seems to look like this:
> :1 666527db455708922859283c673094002092910b
> :2 1e2acf73c6db881cfb1d56d67662e3d9260be2cf
> [snip]
>
> The "fixed POSIX version" follows that style:
> 666527db455708922859283c673094002092910b refs/tags/blablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla-1
> 1e2acf73c6db881cfb1d56d67662e3d9260be2cf refs/tags/blablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla-2
> [snip]

That means whatever the test that comes after that set-up step to populate the packed-refs file does not need the packed-refs file.

In fact, the test only sees if "clone" succeeds, without checking what refs are present in the resulting repository. The original repository lacks these 50000 tags due to the non-portable sed construct (it has a corrupt packed-refs file) and it may or may not have other refs, but because cloning an empty repository does not error out these days, the test just passes.

Sloppy.
Previous: Torsten BögershausenNext: Junio C Hamano
Message 7 of 13 in “test-bzr: Do not use unportable sed "\+"”
  1. test-bzr: Do not use unportable sed "\+"Torsten Bögershausen, May 11, 2013
  2. Junio C HamanoMay 11, 2013
  3. Junio C HamanoMay 11, 2013
  4. Torsten BögershausenMay 11, 2013
  5. Junio C HamanoMay 11, 2013
  6. Torsten BögershausenMay 11, 2013
  7. Junio C HamanoMay 12, 2013
  8. t5551: do not use unportable sed '\+'Junio C Hamano, May 12, 2013
  9. Torsten BögershausenMay 13, 2013
  10. Junio C HamanoMay 13, 2013
  11. Torsten BögershausenMay 13, 2013
  12. Junio C HamanoMay 13, 2013
  13. Torsten BögershausenMay 11, 2013

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.