[PATCHv2 1/2] test-lib.sh: Test for presence of git-init in the right path.
- From
Michael J Gruber <git@drmicha.warpmail.net>
- Date
- Mar 16, 2009, 17:03 UTC
- Message-ID
- <1237222992-19421-2-git-send-email-git@drmicha.warpmail.net>
- In-Reply-To
- <7v3adfc0n4.fsf@gitster.siamese.dyndns.org>
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> --- t/test-lib.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/t/test-lib.sh b/t/test-lib.sh index 7a847ec..b9da86e 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"
-- 1.6.2.149.g6462