Skip to content

Commit a2ef9b9

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 729b739 + 2be7d89 commit a2ef9b9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

compat/mingw.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "../cache.h"
99
#include "win32/lazyload.h"
1010
#include "win32/exit-process.h"
11+
#include "../config.h"
1112

1213
#define HCAST(type, handle) ((type)(intptr_t)handle)
1314

config.c

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

15331533
if (opts->commondir)
15341534
repo_config = mkpathdup("%s/config", opts->commondir);
1535+
else if (opts->git_dir)
1536+
repo_config = mkpathdup("%s/config", opts->git_dir);
15351537
else
15361538
repo_config = NULL;
15371539

0 commit comments

Comments
 (0)