Merge branch 'mh/strbuf-read-file-returns-ssize-t'
[gitweb.git] / builtin / config.c
index 28f57c8fb96c61151042a670ee70722eb8ead143..7188405f7ef587d7b09b1cf2c6e422c8385ed794 100644 (file)
@@ -488,10 +488,8 @@ int cmd_config(int argc, const char **argv, const char *prefix)
        }
 
        if (use_global_config) {
-               char *user_config = NULL;
-               char *xdg_config = NULL;
-
-               home_config_paths(&user_config, &xdg_config, "config");
+               char *user_config = expand_user_path("~/.gitconfig");
+               char *xdg_config = xdg_config_home("config");
 
                if (!user_config)
                        /*