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

2016-05-27 Thread Junio C Hamano
Mike Hommey writes: > On Thu, May 26, 2016 at 07:19:16AM -0400, 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

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

2016-05-26 Thread Mike Hommey
On Thu, May 26, 2016 at 07:19:16AM -0400, 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 main tree,

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

2016-05-26 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