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

Re: [PATCH] Export GIT_DIR after setting it

From
MKmartin f. krafft <madduck@madduck.net>
Date
May 15, 2008, 18:28 UTC
Message-ID
<20080515182806.GA14799@lapse.madduck.net>
In-Reply-To
<20080515175555.GA13003@atjola.homenet>
also sprach Björn Steinbrink <B.Steinbrink@gmx.de> [2008.05.15.1855 +0100]:
> It kind of feels like a bug that git-pull does not export GIT_DIR there,
> but you could probably also argue that it is wrong not to have GIT_DIR
> set in the environment when using a non-standard name for the git dir.
> Hm?
Ah, but it is a standard name: .

If git does not find .git, it *does* seem to look into the current directory too; that's why commands work inside bare repos...

-- 
martin | http://madduck.net/ | http://two.sentenc.es/
 
click the start menu and select 'shut down.'
 
spamtraps: madduck.bogus@madduck.net
Previous: Björn SteinbrinkNext: Björn Steinbrink
Message 6 of 9 in “Export GIT_DIR after setting it”
  1. Export GIT_DIR after setting itmartin f. krafft, May 14, 2008
  2. Junio C HamanoMay 15, 2008
  3. martin f. krafftMay 15, 2008
  4. Junio C HamanoMay 15, 2008
  5. Björn SteinbrinkMay 15, 2008
  6. martin f. krafftMay 15, 2008
  7. Björn SteinbrinkMay 15, 2008
  8. martin f. krafftMay 16, 2008
  9. martin f. krafftMay 20, 2008

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.