[pass] [PATCH] git: add ability to clone a password store
Silvio Fricke
silvio.fricke at gmail.com
Tue May 13 10:10:01 CEST 2014
Signed-off-by: Silvio Fricke <silvio.fricke at gmail.com>
---
src/password-store.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/password-store.sh b/src/password-store.sh
index 140b1bc..77c3a70 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -569,6 +569,9 @@ cmd_git() {
git_add_file .gitattributes "Configure git repository for gpg file diff."
git config --local diff.gpg.binary true
git config --local diff.gpg.textconv "$GPG -d ${GPG_OPTS[*]}"
+ elif [[ $1 == "clone" ]]; then
+ [[ -d "$PREFIX" ]] && die "Error: you have a password store in $PREFIX. Move it out of the way."
+ git "$@" "$GIT_DIR"
elif [[ -d $GIT_DIR ]]; then
git "$@"
else
--
1.9.2
More information about the Password-Store
mailing list