Anonymous committed 10b94e2

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

Signed-off-by: Junio C Hamano <>

Comments (0)

Files changed (1)

 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
 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