Skip to content

Commit

Permalink
add GIT_ASKPASS as a passthrough env var
Browse files Browse the repository at this point in the history
documented via man gitcredentials,  it is used to provide a script/input
for git to fetch creds in a no-tty usecase.
used among other things by jenkins to pass credentials down to git for
authentication.

https://github.com/jenkinsci/git-plugin/blob/1e3488a730a169778ba0863dd4edbb1dc29154a1/README.adoc#git-bindings
https://github.com/jenkinsci/git-plugin/blob/9429e7d05df3dbb4060ac6ab4da6538bb0eb50ba/src/main/java/jenkins/plugins/git/GitUsernamePasswordBinding.java#L130
  • Loading branch information
mattp- committed Oct 27, 2022
1 parent 7ac2dbe commit 8ebb7ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pre_commit/git.py
Expand Up @@ -43,6 +43,7 @@ def no_git_env(_env: Mapping[str, str] | None = None) -> dict[str, str]:
'GIT_SSL_NO_VERIFY', 'GIT_CONFIG_COUNT',
'GIT_HTTP_PROXY_AUTHMETHOD',
'GIT_ALLOW_PROTOCOL',
'GIT_ASKPASS',
}
}

Expand Down

0 comments on commit 8ebb7ae

Please sign in to comment.