Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unset git global configs #501

Merged
merged 1 commit into from
Aug 5, 2024
Merged

Conversation

M0ses
Copy link
Collaborator

@M0ses M0ses commented Aug 5, 2024

git is highly configurable and esp. for the log command its very popular to modify the config to the users needs/preferences.

Unfortunatly these settings are also active in scripted environments like tar_scm/obs_scm and can cause various errors.

This patch sets the ENV VAR GIT_CONFIG_GLOBAL to /dev/null so configs in ~/.gitconfig and $XDG_CONFIG_HOME/git/config should be ignored.

@M0ses M0ses force-pushed the ignore_users_gitconfig branch 2 times, most recently from 80bfd41 to 32f8978 Compare August 5, 2024 13:52
git is highly configurable and esp. for the `log` command its very
popular to modify the config to the users needs/preferences.

Unfortunatly these settings are also active in scripted environments
like tar_scm/obs_scm and can cause various errors.

This patch sets the ENV VAR GIT_CONFIG_GLOBAL to /dev/null so configs
in ~/.gitconfig and $XDG_CONFIG_HOME/git/config should be ignored.
@M0ses M0ses merged commit eafa0f5 into openSUSE:master Aug 5, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant