summaryrefslogtreecommitdiff
path: root/t/test-lib.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2006-12-19 08:18:09 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-12-19 09:14:59 (GMT)
commit8683a45d66967b0969516a2b72cdbf136c2064a2 (patch)
treeff543e98be6e36f0960660d4543b5f036917eb58 /t/test-lib.sh
parent171e800b374c98dd703e906bd9955b2b0410cabe (diff)
downloadgit-8683a45d66967b0969516a2b72cdbf136c2064a2.zip
git-8683a45d66967b0969516a2b72cdbf136c2064a2.tar.gz
git-8683a45d66967b0969516a2b72cdbf136c2064a2.tar.bz2
Introduce GIT_TEMPLATE_DIR
Instead of passing --template explicitely to init-db and clone, you can just set the environment variable GIT_TEMPLATE_DIR. Also make use of it in the tests, to make sure that the templates are copied. Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't/test-lib.sh')
-rwxr-xr-xt/test-lib.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index ac7be76..f0f9cd6 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -208,8 +208,9 @@ test_done () {
# t/ subdirectory and are run in trash subdirectory.
PATH=$(pwd)/..:$PATH
GIT_EXEC_PATH=$(pwd)/..
+GIT_TEMPLATE_DIR=$(pwd)/../templates/blt
HOME=$(pwd)/trash
-export PATH GIT_EXEC_PATH HOME
+export PATH GIT_EXEC_PATH GIT_TEMPLATE_DIR HOME
GITPERLLIB=$(pwd)/../perl/blib/lib:$(pwd)/../perl/blib/arch/auto/Git
export GITPERLLIB