From: Dennis Kaarsemaker Date: Sun, 01 Dec 2013 18:08:39 GMT Subject: Re: GIT_DIR not auto ignored Message-ID: <1385921319.3240.3.camel@localhost> In-Reply-To: On za, 2013-11-30 at 23:06 -0800, Ingy dot Net wrote: > Greetings, > > I found this probable bug: > https://gist.github.com/anonymous/01979fd9e6e285df41a2 Summary: $ mv .git .foo $ export GIT_DIR=$PWD/.foo $ git status # On branch master # # Initial commit # # Untracked files: # .foo/ nothing added to commit but untracked files present I checked with 1.8.5 and this still happens. And this also happens: $ mv .git .foo $ export GIT_DIR=.foo dennis@lightning:~/code/git$ touch .git dennis@lightning:~/code/git$ git status On branch master Untracked files: (use "git add ..." to include in what will be committed) .foo/ nothing added to commit but untracked files present (use "git add" to track) (Note the absence of .git there) -- Dennis Kaarsemaker www.kaarsemaker.net