GIT_INDEX_FILE relative paths are relative to the work tree

2015-11-27 Thread Jack O'Connor
When I use a relative path in the GIT_INDEX_FILE environment variable, git interprets that path relative to the the work tree. This can be confusing if my cwd is some subdirectory of my project; in that case an index file is created in the project root rather than in my cwd. It can also be confusin

Re: GIT_INDEX_FILE relative paths are relative to the work tree

2015-11-27 Thread Duy Nguyen
On Fri, Nov 27, 2015 at 4:17 PM, Jack O'Connor wrote: > When I use a relative path in the GIT_INDEX_FILE environment variable, > git interprets that path relative to the the work tree. This can be > confusing if my cwd is some subdirectory of my project; in that case > an index file is created in