tests: factor HOME=$(pwd) in test-lib.sh
[gitweb.git] / t / test-lib.sh
index 7c9fe7ab42e0e88d7a64a979eb1b28a217f01b99..67553f3dfc5146203707994fa122db1c7533b235 100644 (file)
@@ -865,6 +865,9 @@ test_create_repo "$test"
 # in subprocesses like git equals our $PWD (for pathname comparisons).
 cd -P "$test" || exit 1
 
+HOME=$(pwd)
+export HOME
+
 this_test=${0##*/}
 this_test=${this_test%%-*}
 for skp in $GIT_SKIP_TESTS