diff options
author | 2018-11-18 18:23:57 +0900 | |
---|---|---|
committer | 2018-11-18 18:23:57 +0900 | |
commit | 744fad66c933ad5740e5f974a841d15c65d0246d (patch) | |
tree | dd2fc037feb2285078aeea4fce5aac18deee4b59 /config.c | |
parent | Merge branch 'lj/mingw-pthread-cond' (diff) | |
parent | config: report a bug if git_dir exists without commondir (diff) | |
download | tgif-744fad66c933ad5740e5f974a841d15c65d0246d.tar.xz |
Merge branch 'js/config-sequence'
A sanity check for start-up sequence has been added in the config
API codepath.
* js/config-sequence:
config: report a bug if git_dir exists without commondir
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1668,6 +1668,8 @@ static int do_git_config_sequence(const struct config_options *opts, if (opts->commondir) repo_config = mkpathdup("%s/config", opts->commondir); + else if (opts->git_dir) + BUG("git_dir without commondir"); else repo_config = NULL; |