[pass] [PATCH] Fixed 'missing working tree' for 'pass git pull'

Matthieu Weber mweber at free.fr
Thu Mar 20 19:55:52 CET 2014


---
 src/password-store.sh |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/password-store.sh b/src/password-store.sh
index e9ba4f0..a5d062f 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -419,6 +419,7 @@ case "$command" in
 			git "$@" || exit 1
 			git_add_file "$PREFIX" "Added current contents of password store."
 		elif [[ -d $GIT_DIR ]]; then
+			cd $GIT_WORK_TREE
 			exec git "$@"
 		else
 			echo "Error: the password store is not a git repository."
-- 
1.7.10.4



More information about the Password-Store mailing list