diff options
Diffstat (limited to 'hack/git-ask-pass.sh')
| -rwxr-xr-x | hack/git-ask-pass.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hack/git-ask-pass.sh b/hack/git-ask-pass.sh new file mode 100755 index 0000000..4e34efe --- /dev/null +++ b/hack/git-ask-pass.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# This script is used as the command supplied to GIT_ASKPASS as a way to supply username/password +# credentials to git, without having to use git credentials helpers, or having on-disk config. +case "$1" in +Username*) echo "${GIT_USERNAME}" ;; +Password*) echo "${GIT_PASSWORD}" ;; +esac |
