You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `git config list --global` output includes `$HOME/.gitconfig`, but
ignores `$XDG_CONFIG_HOME/git/config`. It should include both files.
Modify tests to check for this expected behavior:
A. `git config list --global` should include contents from both the
home and XDG config locations (assuming they are readable), not
just the former.
Also, add tests to ensure that the subsequence patches do not introduce
regressions on the behavior of `git config list`:
B. The home config should take precedence over the XDG config.
C. Without `--global`, it should not bail on unreadable/non-existent
global config files.
D. With `--global`, it should bail when both `$HOME/.gitconfig` and
`$XDG_CONFIG_HOME/git/config` are unreadable. It should not bail
if at least one of them is readable.
Signed-off-by: Delilah Ashley Wu <[email protected]>
0 commit comments