From: Joey Hess Date: Tue, 17 May 2016 18:26:45 GMT Subject: Re: GIT_INDEX_FILE relative path breaks in subdir Message-ID: <20160517182645.GA27396@kitenet.net> In-Reply-To: Junio C Hamano wrote: > Joey Hess 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