Skip to content
Permalink
Browse files
Merge pull request #2370 from dscho/prettify-etc-gitconfig-path
config: normalize the path of the system gitconfig
  • Loading branch information
dscho committed Oct 25, 2019
2 parents 631336f + 3a5522c commit d1d8fc26450905cfd36428749bdd6e58330ac0e4
Showing with 4 additions and 2 deletions.
  1. +4 −2 config.c
@@ -1657,9 +1657,11 @@ static int git_config_from_blob_ref(config_fn_t fn,

const char *git_etc_gitconfig(void)
{
static const char *system_wide;
if (!system_wide)
static char *system_wide;
if (!system_wide) {
system_wide = system_path(ETC_GITCONFIG);
normalize_path_copy(system_wide, system_wide);
}
return system_wide;
}

0 comments on commit d1d8fc2

Please sign in to comment.