diff options
author | June McEnroe <june@causal.agency> | 2020-05-04 15:39:58 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-05-04 15:39:58 -0400 |
commit | 3b6e8769f95c84517aa4baaee3f6677c29c95bff (patch) | |
tree | 328a1403f764c29cbe474e08bfeb3b24c0be628d /home | |
parent | Add The Rosewater Insurrection (diff) | |
download | src-3b6e8769f95c84517aa4baaee3f6677c29c95bff.tar.gz src-3b6e8769f95c84517aa4baaee3f6677c29c95bff.zip |
Add git-password script to get a password from git-credential
Diffstat (limited to 'home')
-rwxr-xr-x | home/.local/bin/git-password | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/home/.local/bin/git-password b/home/.local/bin/git-password new file mode 100755 index 00000000..41351e38 --- /dev/null +++ b/home/.local/bin/git-password @@ -0,0 +1,7 @@ +#!/bin/sh +set -eu + +url=$1 +echo "url=${url}" \ + | git credential fill \ + | sed -En 's/^password=(.*)/\1/p' |