Browse Source

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
maint
Junio C Hamano 6 years ago
parent
commit
744fad66c9
  1. 2
      config.c

2
config.c

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


Loading…
Cancel
Save