Re: GIT_DIR not auto ignored
- From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
- Date
- Dec 1, 2013, 18:08 UTC
- Message-ID
- <1385921319.3240.3.camel@localhost>
- In-Reply-To
- <CAHJtQJ77drefyhjrs_C8bEq14ZiSNf6Boztqx+JYx51dRtrd-w@mail.gmail.com>
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 <file>..." 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