Re: git status doesn't ignore GIT_DIR directory?
- From
- Thorsten 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