Skip to content

Commit

Permalink
credential-store.c: replace home_config_paths() with xdg_config_home()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pyokagan authored and gitster committed May 6, 2015
1 parent 2845ce7 commit 64ab71d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credential-store.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 64ab71d

Please sign in to comment.