@matheusbsbs / matheus-bagliano / commits / 10b94e283a
Fork 0

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>

Junio C Hamano committed Dec 9, 2005 at 17:32 UTC 10b94e283aa76d56b85cfc9fcb8bc63f167b580b
1 file changed +2 -3
t/test-lib.sh
+2 -3
@@ -149,7 +149,7 @@ test_expect_code () {
149 test_done () {
150 trap - exit
151 case "$test_failure" in
152 - 0)
152 + 0)
153 # We could:
154 # cd .. && rm -fr trash
155 # but that means we forbid any tests that use their own
@@ -190,8 +190,7 @@ test=trash
190 rm -fr "$test"
191 mkdir "$test"
192 cd "$test"
193 -git init-db --template=../../templates/blt/ 2>/dev/null ||
193 +"$GIT_EXEC_PATH/git" init-db --template=../../templates/blt/ 2>/dev/null ||
194 error "cannot run git init-db"
195
196 mv .git/hooks .git/hooks-disabled
197 -