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

support gitconfig from env #2136

Merged
merged 1 commit into from Nov 23, 2021
Merged

Conversation

@emzeat
Copy link

@emzeat emzeat commented Nov 22, 2021

Add exceptions to the git env so externally configured gitconfig
values set via GIT_CONFIG_KEY_<n>, GIT_CONFIG_VALUE_<n> and
GIT_CONFIG_COUNT get passed through. This is e.g. useful when using
the env to inject insteadOf configurations to force use of proxy servers
in a CI environment.

@asottile
Copy link
Member

@asottile asottile commented Nov 22, 2021

can you link a reference?

@emzeat
Copy link
Author

@emzeat emzeat commented Nov 22, 2021

Add exceptions to the git env so externally configured gitconfig
values set via GIT_CONFIG_KEY_<n>, GIT_CONFIG_VALUE_<n> and
GIT_CONFIG_COUNT get passed through.
@asottile asottile force-pushed the fix/git_config_env branch from 75ef8ee to 4eb91cd Nov 23, 2021
Copy link
Member

@asottile asottile left a comment

@asottile asottile merged commit 36e9514 into pre-commit:master Nov 23, 2021
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants