Skip to content
Snippets Groups Projects
Commit 44004872 authored by Johannes Schindelin's avatar Johannes Schindelin Committed by Junio C Hamano
Browse files

config: report a bug if git_dir exists without commondir


This did happen at some stage, and was fixed relatively quickly. Make
sure that we detect very quickly, too, should that happen again.

Signed-off-by: default avatarJohannes Schindelin <johannes.schindelin@gmx.de>
Reviewed-by: default avatarJeff King <peff@peff.net>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent d166e6af
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