Skip to content

Commit 64ab71d

Browse files
pyokagangitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2845ce7 commit 64ab71d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

credential-store.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ int main(int argc, char **argv)
170170
} else {
171171
if ((file = expand_user_path("~/.git-credentials")))
172172
string_list_append_nodup(&fns, file);
173-
home_config_paths(NULL, &file, "credentials");
173+
file = xdg_config_home("credentials");
174174
if (file)
175175
string_list_append_nodup(&fns, file);
176176
}

0 commit comments

Comments
 (0)