Skip to content

support gitconfig from env - #2136

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

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

Conversation

@emzeat

@emzeat emzeat commented Nov 22, 2021

Copy link
Copy Markdown

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
Copy Markdown
Member

can you link a reference?

@emzeat

emzeat commented Nov 22, 2021

Copy link
Copy Markdown
Author

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.

@asottile asottile left a comment

Copy link
Copy Markdown
Member

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