summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-10 01:32:18 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-12-10 01:32:18 (GMT)
commit10b94e283aa76d56b85cfc9fcb8bc63f167b580b (patch)
tree6ea41c64f4b21b11d42905637dc398b0bd834d9d
parent0f737464a6734d917431cf8df14eb04bd9c4cd8d (diff)
downloadgit-10b94e283aa76d56b85cfc9fcb8bc63f167b580b.zip
git-10b94e283aa76d56b85cfc9fcb8bc63f167b580b.tar.gz
git-10b94e283aa76d56b85cfc9fcb8bc63f167b580b.tar.bz2
Use GIT_EXEC_PATH explicitly for initial git-init-db in tests.
This is just a belts-and-suspenders check, but makes sure we have both "git" and "git-init-db" built, executable, and checking. Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xt/test-lib.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 3704e5f..447d9e2 100755
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -149,7 +149,7 @@ test_expect_code () {
test_done () {
trap - exit
case "$test_failure" in
- 0)
+ 0)
# We could:
# cd .. && rm -fr trash
# but that means we forbid any tests that use their own
@@ -190,8 +190,7 @@ test=trash
rm -fr "$test"
mkdir "$test"
cd "$test"
-git init-db --template=../../templates/blt/ 2>/dev/null ||
+"$GIT_EXEC_PATH/git" init-db --template=../../templates/blt/ 2>/dev/null ||
error "cannot run git init-db"
mv .git/hooks .git/hooks-disabled
-