-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add missing git-ask-pass.sh to support password auth (#154)
Signed-off-by: Alexander Matyushentsev <AMatyushentsev@gmail.com>
- Loading branch information
Alexander Matyushentsev
committed
Jan 31, 2021
1 parent
44154ec
commit 457b52f
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |