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

Re: [PATCH] t0091: allow test in a repository without tags

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 6, 2024, 18:33 UTC
Message-ID
<xmqqeddpigsm.fsf@gitster.g>
In-Reply-To
<CAN0heSrX8zQnfk_abtgBreoc=a8Z+7E-jEHHUFmu6740L8p2Lw@mail.gmail.com>
Martin Ågren <martin.agren@gmail.com> writes:
Show 5 quoted lines
> GIT-VERSION-GEN seems to be careful to only use tags on the wanted form.
> My build generates a git version of "2.43.GIT", no "unknown..." stuff.
>
> I don't doubt that you've hit this, I just wonder which piece of the
> puzzle I'm missing.
I wonder that too.

I was experimenting with "seen" with the reftable. I first created a new and empty repository with "git init --ref-format=reftable" in a brand new directory next to my primary working area, and then did "git fetch --no-tags ../git.git/ master" or something to pull the history without tags in. After that I thought I was careful to make sure I only ran the "seen" version of Git (all my other installations of Git are unaware of reftable, and the version of Git on my regular $PATH is not from the "seen" branch), but perhaps I screwed up at some point and the mistake got stuck in the version file, or something silly like that, perhaps.

Show 13 quoted lines
>
>> -       # The beginning should match "git version --build-info" verbatim,
>> +       # The beginning should match "git version --build-options" verbatim,
>
> Correct, my thinko-typo, thanks for correcting.
>
>>         # but rather than checking bit-for-bit equality, just test some basics.
>> -       grep "git version [0-9]." system &&
>> +       grep "git version " system &&
>
> This matches the commit message, ok.
>
> Martin
Previous: Martin Ågren
Message 5 of 5 in “t0091: allow test in a repository without tags”
  1. t0091: allow test in a repository without tagsJunio C Hamano, Jan 30, 2024
  2. Eric SunshineJan 30, 2024
  3. Junio C HamanoJan 30, 2024
  4. Martin ÅgrenFeb 5, 2024
  5. Junio C HamanoFeb 6, 2024

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.