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

Re: [PATCH/RFC] introduce GIT_WORK_TREE environment variable

From
Johannes Sixt <j.sixt@eudaptics.com>
Date
Mar 28, 2007, 15:45 UTC
Message-ID
<460A8D9F.75323F65@eudaptics.com>
In-Reply-To
<20070328141505.GA16600@moooo.ath.cx>
Matthias Lederhofer wrote:
Show 12 quoted lines
> diff --git a/t/test-lib.sh b/t/test-lib.sh
> index c075474..77c6d23 100755
> --- a/t/test-lib.sh
> +++ b/t/test-lib.sh
> @@ -25,6 +25,7 @@ GIT_COMMITTER_EMAIL=committer@example.com
>  GIT_COMMITTER_NAME='C O Mitter'
>  unset GIT_DIFF_OPTS
>  unset GIT_DIR
> +unset GIT_WORK_TREE
>  unset GIT_EXTERNAL_DIFF
>  unset GIT_INDEX_FILE
>  unset GIT_OBJECT_DIRECTORY

connect.c:git_connect() unsets some environment variables, most prominently GIT_DIR; I think it should also unset GIT_WORK_TREE.

-- Hannes
Previous: Matthias LederhoferNext: Matthias Lederhofer
Message 2 of 12 in “introduce GIT_WORK_TREE environment variable”
  1. introduce GIT_WORK_TREE environment variableMatthias Lederhofer, Mar 28, 2007
  2. Johannes SixtMar 28, 2007
  3. Matthias LederhoferMar 29, 2007
  4. Matthias LederhoferApr 4, 2007
  5. Dana HowApr 4, 2007
  6. Junio C HamanoApr 4, 2007
  7. Matthias LederhoferApr 4, 2007
  8. export setup_git_env()Matthias Lederhofer, Apr 4, 2007
  9. introduce GIT_WORK_TREE environment variableMatthias Lederhofer, Apr 4, 2007
  10. Junio C HamanoApr 4, 2007
  11. Matthias LederhoferApr 6, 2007
  12. Junio C HamanoApr 11, 2007

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.