summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsrc/password-store.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/password-store.sh b/src/password-store.sh
index 2c6bd12..d9c139b 100755
--- a/src/password-store.sh
+++ b/src/password-store.sh
@@ -227,7 +227,7 @@ case "$command" in
fi
;;
git)
- if [[ -d $GIT ]]; then
+ if [[ $1 == "init" ]] || [[ -d $GIT ]]; then
exec git $@
else
echo "Error: the password store is not a git repository."