Merge branch 'pt/xdg-config-path' into maint
Code clean-up for xdg configuration path support. * pt/xdg-config-path: path.c: remove home_config_paths() git-config: replace use of home_config_paths() git-commit: replace use of home_config_paths() credential-store.c: replace home_config_paths() with xdg_config_home() dir.c: replace home_config_paths() with xdg_config_home() attr.c: replace home_config_paths() with xdg_config_home() path.c: implement xdg_config_home() t0302: "unreadable" test needs POSIXPERM t0302: test credential-store support for XDG_CONFIG_HOME git-credential-store: support XDG_CONFIG_HOME git-credential-store: support multiple credential files
This commit is contained in:
@ -488,10 +488,8 @@ int cmd_config(int argc, const char **argv, const char *prefix)
|
||||
}
|
||||
|
||||
if (use_global_config) {
|
||||
char *user_config = NULL;
|
||||
char *xdg_config = NULL;
|
||||
|
||||
home_config_paths(&user_config, &xdg_config, "config");
|
||||
char *user_config = expand_user_path("~/.gitconfig");
|
||||
char *xdg_config = xdg_config_home("config");
|
||||
|
||||
if (!user_config)
|
||||
/*
|
||||
|
Reference in New Issue
Block a user