Skip to content

Commit 8822796

Browse files
author
Git for Windows Build Agent
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 ea9aa93 + f00f973 commit 8822796

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
@@ -7,6 +7,7 @@
77
#include "../run-command.h"
88
#include "../cache.h"
99
#include "win32/exit-process.h"
10+
#include "../config.h"
1011

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

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)