summaryrefslogtreecommitdiff
path: root/hack
diff options
context:
space:
mode:
authorAlexander Matyushentsev <Alexander_Matyushentsev@intuit.com>2021-01-31 09:20:10 -0800
committerGitHub <noreply@github.com>2021-01-31 18:20:10 +0100
commit457b52f60e21f48977eb6b5c06323bd2f564bfd1 (patch)
treeb991f84422e3654972c5362c4abce739735d49a9 /hack
parent44154ec8852224d5718fc1c7a1586afdc8ce5959 (diff)
fix: add missing git-ask-pass.sh to support password auth (#154)
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
Diffstat (limited to 'hack')
-rwxr-xr-xhack/git-ask-pass.sh7
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