summaryrefslogtreecommitdiff
path: root/tests/setup.sh
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-23 17:28:31 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-23 17:28:31 +0200
commit57e3fe63c00241f1a2abef4d7023ab92d680c9ce (patch)
tree2c17f03e358ba68defdcd2eeda8b69d8c74e1493 /tests/setup.sh
parent32c88c4af59b88b331a223d93178ab33d52dbb32 (diff)
downloadpass-57e3fe63c00241f1a2abef4d7023ab92d680c9ce.tar.gz
pass-57e3fe63c00241f1a2abef4d7023ab92d680c9ce.tar.bz2
pass-57e3fe63c00241f1a2abef4d7023ab92d680c9ce.zip
Support git tests
Diffstat (limited to '')
-rwxr-xr-xtests/setup.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index ac2d58a..90896a7 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -18,6 +18,12 @@ if [[ ! -d $PASSWORD_STORE_DIR ]]; then
exit 1
fi
+export GIT_DIR="$PASSWORD_STORE_DIR/.git"
+export GIT_WORK_TREE="$PASSWORD_STORE_DIR"
+git config --global user.email "Pass-Automated-Testing-Suite@zx2c4.com"
+git config --global user.name "Pass Automated Testing Suite"
+
+
PASS="$TEST_HOME/../src/password-store.sh"
if [[ ! -e $PASS ]]; then
echo "Could not find password-store.sh"