X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=inline;f=builtin%2Fconfig.c;h=3e3c52849773348a568241f678b3e3ee2e8d123a;hb=2c320e71bfae3d2972d41680a04b78cbd42cb941;hp=76be0b786fd52f181f91b5ad3bdef891068946f1;hpb=f59bf09678ae33901febdf61e03c91bb8eebd970;p=git.git diff --git a/builtin/config.c b/builtin/config.c index 76be0b786..3e3c52849 100644 --- a/builtin/config.c +++ b/builtin/config.c @@ -160,7 +160,7 @@ static int get_value(const char *key_, const char *regex_) if (!local) { const char *home = getenv("HOME"); local = repo_config = git_pathdup("config"); - if (git_config_global() && home) + if (home) global = xstrdup(mkpath("%s/.gitconfig", home)); if (git_config_system()) system_wide = git_etc_gitconfig();