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

Re: [PATCH v2] sequencer: do not export GIT_DIR and GIT_WORK_TREE for 'exec'

From
Johannes Altmanninger <aclopte@gmail.com>
Date
Nov 16, 2021, 06:06 UTC
Message-ID
<20211116060635.uy5ry5huwxo2hsxy@gmail.com>
In-Reply-To
<pull.1134.v2.git.git.1637041986945.gitgitgadget@gmail.com>
On Tue, Nov 16, 2021 at 05:53:06AM +0000, Elijah Newren via GitGitGadget wrote:
Show 13 quoted lines
>     sequencer: fix environment that 'exec' commands run under
>     
>     Changes since v1:
>     
>      * Fix wording in multiple locations pointed out by Johannes
>        Altmanninger
>     
>     Note that Johaness Altmanninger also suggested some additional
>     GIT_DIR/GIT_WORK_TREE and --git-dir/--work-tree testcases, but since
>     those change the current working directory to the work tree so that
>     GIT_WORK_TREE ends up being '.' in every case, I think it's straying a
>     bit from the point of the test. If other feel strongly, I can add them
>     in.

Yeah I also think it's better to leave them out for now. For one, the GIT_DIR/GIT_WORK_TREE test is not really interesting. Next, things are not so obivous: I'm not sure if --git-dir/--work-tree should export those variables to exec but that can be investigated later.

This patch looks great.
Previous: Elijah Newren via GitGitGadgetNext: Phillip Wood
Message 6 of 8 in “sequencer: fix environment that 'exec' commands run under”
  1. sequencer: fix environment that 'exec' commands run underElijah Newren via GitGitGadget, Nov 12, 2021
  2. Johannes AltmanningerNov 14, 2021
  3. Elijah NewrenNov 23, 2021
  4. Johannes AltmanningerDec 5, 2021
  5. sequencer: do not export GIT_DIR and GIT_WORK_TREE for 'exec'Elijah Newren via GitGitGadget, Nov 16, 2021
  6. Johannes AltmanningerNov 16, 2021
  7. Phillip WoodNov 16, 2021
  8. sequencer: do not export GIT_DIR and GIT_WORK_TREE for 'exec'Elijah Newren via GitGitGadget, Dec 4, 2021

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.