Skip to content

support gitconfig from env#2136

Merged
asottile merged 1 commit intopre-commit:masterfrom
emzeat:fix/git_config_env
Nov 23, 2021
Merged

support gitconfig from env#2136
asottile merged 1 commit intopre-commit:masterfrom
emzeat:fix/git_config_env

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

can you link a reference?

@emzeat
Copy link
Author

emzeat commented Nov 22, 2021

can you link a reference?

Sure, see http://git-scm.com/docs/git-config#Documentation/git-config.txt-GITCONFIGCOUNT

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.
Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants