Re: [PATCH v3 2/2] rev-parse: fix some options when executed from subpath of main tree

2016-05-10 Thread Eric Sunshine
On Fri, May 6, 2016 at 9:35 AM, Michael Rappazzo wrote: > Executing `git-rev-parse` with `--git-common-dir`, `--git-path `, > or `--shared-index-path` from the root of the main worktree results in > a relative path to the git dir. > > When executed from a subdirectory of the

[PATCH v3 2/2] rev-parse: fix some options when executed from subpath of main tree

2016-05-06 Thread Michael Rappazzo
Executing `git-rev-parse` with `--git-common-dir`, `--git-path `, or `--shared-index-path` from the root of the main worktree results in a relative path to the git dir. When executed from a subdirectory of the main tree, it can incorrectly return a path which starts 'sub/path/.git'. Change this