Merge branch 'ps/doc-packfile-vs-pack-file' into maint
[gitweb.git] / builtin / config.c
index bfd3016e83f3fd4e5f4f2ec8f4d6f4c5a24e711f..a58f99c2d78f8e06a2e9df7af155af7aa8eaf4c8 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)
                        /*