Skip to content

Commit 637017d

Browse files
dschoGit for Windows Build Agent
authored andcommitted
Merge branch 'bw/config-h'
This backports f31d23a (Merge branch 'bw/config-h', 2017-06-24) from upstream Git's `master` branch, plus a patch that seems to be required to let the test suite pass. This topic branch fixes problems when looking up aliases in worktrees. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 53e21cf + 89af174 commit 637017d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,8 @@ static int do_git_config_sequence(const struct config_options *opts,
16681668

16691669
if (opts->commondir)
16701670
repo_config = mkpathdup("%s/config", opts->commondir);
1671+
else if (opts->git_dir)
1672+
repo_config = mkpathdup("%s/config", opts->git_dir);
16711673
else
16721674
repo_config = NULL;
16731675

0 commit comments

Comments
 (0)