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

Re: [PATCH] make git barf when an alias changes environment variables

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 13, 2007, 05:21 UTC
Message-ID
<7vejkgh1jf.fsf@assigned-by-dhcp.pobox.com>
In-Reply-To
<20070608205755.GA21901@moooo.ath.cx>
What does this patch do when you do this?
	: Because I usually work with this repository...
	$ GIT_DIR=$some_repository
        $ export GIT_DIR
        : Then much later, I happen to visit another repository
        : to take a peek...
	$ cd $somewhere_else
        $ git --git-dir .git some-command

I think --git-dir request on the command line is primarily to allow overriding whatever the user has in the environment as the fallback default, so if the patch makes it barf that is not very nice.

                
Previous: Matthias LederhoferNext: Matthias Lederhofer
Message 2 of 3 in “make git barf when an alias changes environment variables”
  1. make git barf when an alias changes environment variablesMatthias Lederhofer, Jun 8, 2007
  2. Junio C HamanoJun 13, 2007
  3. Matthias LederhoferJun 13, 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.