summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Tan <pyokagan@gmail.com>2015-05-06 08:01:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-05-06 18:33:24 (GMT)
commit64ab71db3a7e5b41a37580f8a3d15cb25b3e7093 (patch)
tree67e7d769b6e2a7560ecd99327c318b2a3f3814ad
parent2845ce7ff1398e851d46b62154293378b74c466d (diff)
downloadgit-64ab71db3a7e5b41a37580f8a3d15cb25b3e7093.zip
git-64ab71db3a7e5b41a37580f8a3d15cb25b3e7093.tar.gz
git-64ab71db3a7e5b41a37580f8a3d15cb25b3e7093.tar.bz2
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>
-rw-r--r--credential-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/credential-store.c b/credential-store.c
index d62dc29..8ebfb97 100644
--- a/credential-store.c
+++ b/credential-store.c
@@ -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);
}