Sync with 2.4.2
[gitweb.git] / credential-store.c
index 8b222513cb9ad2b4519c89019566cd2c2080a3a6..f6925096ffa7e036b4e63f65ce372c596c9e1b70 100644 (file)
@@ -170,7 +170,7 @@ int main(int argc, char **argv)
        } else {
                if ((file = expand_user_path("~/.git-credentials")))
                        string_list_append_nodup(&fns, file);
-               home_config_paths(NULL, &file, "credentials");
+               file = xdg_config_home("credentials");
                if (file)
                        string_list_append_nodup(&fns, file);
        }