Skip to content

Commit cfb90ae

Browse files
committed
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 b9e85f4 + ff0137a commit cfb90ae

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
@@ -1542,6 +1542,8 @@ static int do_git_config_sequence(const struct config_options *opts,
15421542

15431543
if (opts->commondir)
15441544
repo_config = mkpathdup("%s/config", opts->commondir);
1545+
else if (opts->git_dir)
1546+
repo_config = mkpathdup("%s/config", opts->git_dir);
15451547
else
15461548
repo_config = NULL;
15471549

0 commit comments

Comments
 (0)