Re: GIT_INDEX_FILE relative path breaks in subdir
- From
Junio C Hamano <gitster@pobox.com>
- Date
- May 23, 2016, 16:44 UTC
- Message-ID
- <xmqqwpmkafmb.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20160522190404.GA20998@kitenet.net>
Joey Hess <id@joeyh.name> writes:
> This seems to make it basically impossible for any program that wants to > use GIT_INDEX_FILE to use anything other than an absolute path; > there are too many configurations to keep straight that could change how > git interprets what should be a simple relative path to a file.
Thanks for digging. Perhaps this needs to be documented (not "in this case it is take as relative to that, in this other case, ...", but "you cannot rely on relative being relative to something you think").