From 57e3fe63c00241f1a2abef4d7023ab92d680c9ce Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Wed, 23 Apr 2014 17:28:31 +0200 Subject: Support git tests --- tests/setup.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/setup.sh') 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" -- cgit v1.2.3-54-g00ecf