From: Michael J Gruber Date: Mon, 16 Mar 2009 17:03:11 +0000 (+0100) Subject: test-lib.sh: Test for presence of git-init in the right path. X-Git-Tag: v1.6.3-rc0~117^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7ee3760e2c8f181f22d4b80afc03309e4f764385;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/t/test-lib.sh b/t/test-lib.sh index 1e01a912a..dace24c54 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -454,7 +454,7 @@ test_create_repo () { repo="$1" mkdir -p "$repo" cd "$repo" || error "Cannot setup test environment" - "$GIT_EXEC_PATH/git" init "--template=$owd/../templates/blt/" >&3 2>&4 || + "$GIT_EXEC_PATH/git-init" "--template=$owd/../templates/blt/" >&3 2>&4 || error "cannot run git init -- have you built things yet?" mv .git/hooks .git/hooks-disabled cd "$owd"