diff --git a/config.c b/config.c index f90b633dba..80dd3d3716 100644 --- a/config.c +++ b/config.c @@ -1846,9 +1846,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; }