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:
- `git config list --global` should include contents from both the home
and XDG config locations (assuming they are readable), not just the
former.
- `--show-origin` should print correct paths to both configs files, if
they exist.
Also, add tests to ensure subsequent patches do not introduce
regressions to `git config list`:
- The home config should take precedence over the XDG config.
- Without `--global`, it should not bail on unreadable/non-existent
global config files.
- 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.
Reported-by: Jade Lovelace <[email protected]>
Helped-by: Derrick Stolee <[email protected]>
Signed-off-by: Delilah Ashley Wu <[email protected]>
0 commit comments