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

Re: git status doesn't ignore GIT_DIR directory?

From
TEThorsten von Eicken <tve@rightscale.com>
Date
May 23, 2015, 04:41 UTC
Message-ID
<556004DE.7080504@rightscale.com>
In-Reply-To
<20150523022256.GA17789@lanh>
On 5/22/2015 7:22 PM, Duy Nguyen wrote:
Show 14 quoted lines
> On Fri, May 22, 2015 at 07:03:48PM -0700, Junio C Hamano wrote:
>> As far as I know, GIT_DIR was prepared as a mechanism to point at
>> another .git directory that does not live inside the working tree, not
>> as a mechanism to rename it to arbitrary name. E.g.
>>
>>  $ git init
>>  $ mv .git .svn
>>  $ GIT_DIR=$(pwd)/.svn ; export GIT_DIR
>>
>> is not expected to work.
>
> ++
> +Note that if GIT_DIR is set explicitly to a directory inside working
> +tree, the directory name must be ".git".

This is not at all what I was hoping to hear, but thanks for the response. Thorsten

Previous: Duy NguyenNext: Duy Nguyen
Message 4 of 10 in “git status doesn't ignore GIT_DIR directory?”
  1. Thorsten von EickenMay 23, 2015
  2. Junio C HamanoMay 23, 2015
  3. Duy NguyenMay 23, 2015
  4. Thorsten von EickenMay 23, 2015
  5. Duy NguyenMay 23, 2015
  6. Mike HommeyMay 23, 2015
  7. Duy NguyenMay 23, 2015
  8. Junio C HamanoMay 23, 2015
  9. Junio C HamanoMay 23, 2015
  10. Junio C HamanoMay 23, 2015

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.