Skip to content
Snippets Groups Projects
Commit 744fad66 authored by Junio C Hamano's avatar Junio C Hamano
Browse files

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
parents 06a2d241 44004872
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment