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

Re: [PATCH 2/2] refs: warn on non-pseudoref looking .git/<file> refs

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Dec 10, 2020, 20:47 UTC
Message-ID
<CAPig+cSph9EcnGDUBjWsvR3yfbydK=mOMPmCEas=YC6bUJS=zA@mail.gmail.com>
In-Reply-To
<87sg8dwglk.fsf@evledraar.gmail.com>

On Thu, Dec 10, 2020 at 3:29 PM Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:

Show 18 quoted lines
> On Thu, Dec 10 2020, Eric Sunshine wrote:
> > On Thu, Dec 10, 2020 at 7:55 AM Ævar Arnfjörð Bjarmason
> > <avarab@gmail.com> wrote:
> >> +       GIT_TEST_GETTEXT_POISON=false grep "like a pseudoref" err &&
> >
> > What is the purpose of assigning GIT_TEST_GETTEXT_POISON here?
>
> Since 6cdccfce1e0 (i18n: make GETTEXT_POISON a runtime option,
> 2018-11-08) we haven't needed to use the C_LOCALE_OUTPUT prerequisite
> for any new code, since we can just turn the poisoning off.
>
> I think we should just slowly refactor things away from that
> prerequisite and test_i18ngrep, which were only needed because it used
> to be a compile-time switch, but I haven't gotter around to that
> refactoring.
>
> In liue of that I think it makes more sense to always run the full test
> if possible, no matter what the GIT_TEST_* mode is.

I must be missing something. I've looked at 6cdccfce1e0 but I still don't see how or why `GIT_TEST_GETTEXT_POISON=false` could affect the simple `grep` invocation being done by this test. I could understand if GIT_TEST_GETTEXT_POISON was applied to the invocation of a Git command, but that's not the case here.

(I also notice that 6cdccfce1e0 only checks whether GIT_TEST_GETTEXT_POISON is empty or not -- and the changes in 6cdccfce1e0 set GIT_TEST_GETTEXT_POISON to an empty value rather than to "false", so I find myself doubly confused by this application of GIT_TEST_GETTEXT_POISON to `grep`.)

Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 5 of 12 in “refs: move is_pseudoref_syntax() earlier in the file”
  1. 1/2 refs: move is_pseudoref_syntax() earlier in the fileÆvar Arnfjörð Bjarmason, Dec 10, 2020
  2. 2/2 refs: warn on non-pseudoref looking .git/<file> refsÆvar Arnfjörð Bjarmason, Dec 10, 2020
  3. Eric SunshineDec 10, 2020
  4. Ævar Arnfjörð BjarmasonDec 10, 2020
  5. Eric SunshineDec 10, 2020
  6. Ævar Arnfjörð BjarmasonDec 10, 2020
  7. 2/2 refs: warn on non-pseudoref looking .git/<file> refsÆvar Arnfjörð Bjarmason, Dec 14, 2020
  8. Eric SunshineDec 14, 2020
  9. Junio C HamanoDec 14, 2020
  10. Ævar Arnfjörð BjarmasonDec 15, 2020
  11. 1/2 refs: move is_pseudoref_syntax() earlier in the fileÆvar Arnfjörð Bjarmason, Dec 14, 2020
  12. 0/2 warn on non-pseudoref looking .git/<file> refsÆvar Arnfjörð Bjarmason, Dec 14, 2020

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.