credential-store.c: replace home_config_paths() with xdg_config_home()
Since only the xdg credentials file path is required, and home_config_paths() is unable to construct the path ~/.git-credentials, simplify the code by replacing home_config_paths() with xdg_config_home(). Signed-off-by: Paul Tan <pyokagan@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Paul Tan committed
May 6, 2015 at 16:01 UTC
64ab71db3a7e5b41a37580f8a3d15cb25b3e7093
1 file changed
+1
-1
credential-store.c
+1
-1
@@ -170,7 +170,7 @@ int main(int argc, char **argv)
170
} else {
171
if ((file = expand_user_path("~/.git-credentials")))
172
string_list_append_nodup(&fns, file);
173
- home_config_paths(NULL, &file, "credentials");
173
+ file = xdg_config_home("credentials");
174
if (file)
175
string_list_append_nodup(&fns, file);
176
}