test-lib.sh: Test for presence of git-init in the right path.
It just happens so that when GIT_EXEC_PATH points to a compiled checkout of git.git it contains "git". Since this is not true in general make test-lib check for "git-init" which is always in GIT_EXEC_PATH. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael J Gruber committed
Mar 16, 2009 at 18:03 UTC
7ee3760e2c8f181f22d4b80afc03309e4f764385
1 file changed
+1
-1
t/test-lib.sh
+1
-1
@@ -454,7 +454,7 @@ test_create_repo () {
454
repo="$1"
455
mkdir -p "$repo"
456
cd "$repo" || error "Cannot setup test environment"
457
- "$GIT_EXEC_PATH/git" init "--template=$owd/../templates/blt/" >&3 2>&4 ||
457
+ "$GIT_EXEC_PATH/git-init" "--template=$owd/../templates/blt/" >&3 2>&4 ||
458
error "cannot run git init -- have you built things yet?"
459
mv .git/hooks .git/hooks-disabled
460
cd "$owd"