summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael J Gruber <git@drmicha.warpmail.net>2009-03-16 17:03:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-03-16 19:18:18 (GMT)
commit7ee3760e2c8f181f22d4b80afc03309e4f764385 (patch)
tree7e98b1fb9ee18627b16b89276d5761bbb5ad97fa
parent8e24cbaeafc7eed709e251fda1673ffea84edfb1 (diff)
downloadgit-7ee3760e2c8f181f22d4b80afc03309e4f764385.zip
git-7ee3760e2c8f181f22d4b80afc03309e4f764385.tar.gz
git-7ee3760e2c8f181f22d4b80afc03309e4f764385.tar.bz2
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>
-rw-r--r--t/test-lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 1e01a91..dace24c 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"