Re: GIT_INDEX_FILE relative path breaks in subdir
- From
Joey Hess <id@joeyh.name>
- Date
- May 17, 2016, 18:26 UTC
- Message-ID
- <20160517182645.GA27396@kitenet.net>
- In-Reply-To
- <xmqqy478wptr.fsf@gitster.mtv.corp.google.com>
Junio C Hamano wrote:
Show 7 quoted lines
> Joey Hess <id@joeyh.name> writes: > > > Appears to be a bug in git. Seems that it's assuming GIT_INDEX_FILE is > > relative to the top of the worktree and not to the CWD. > > I think that has always been the case. You can always specify it as > relative to the top. Of course, you can use absolute.
I think it *has* always been that way, but is there anything in the documentation that indicates this is the case? This could well be best fixed in the documentation.
Hmm, at least GIT_OBJECT_DIRECTORY also behaves this way. (OTOH, GIT_DIR does not behave this way).
-- see shy jo