From: Junio C Hamano Date: Sat, 10 Dec 2005 01:32:18 +0000 (-0800) Subject: Use GIT_EXEC_PATH explicitly for initial git-init-db in tests. X-Git-Tag: v0.99.9m^2~18 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=10b94e283aa76d56b85cfc9fcb8bc63f167b580b;p=git.git 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 --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 3704e5faf..447d9e251 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 -