From 457b52f60e21f48977eb6b5c06323bd2f564bfd1 Mon Sep 17 00:00:00 2001 From: Alexander Matyushentsev Date: Sun, 31 Jan 2021 09:20:10 -0800 Subject: fix: add missing git-ask-pass.sh to support password auth (#154) Signed-off-by: Alexander Matyushentsev --- hack/git-ask-pass.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 hack/git-ask-pass.sh (limited to 'hack') 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 -- cgit v1.2.3