summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0be9bc0)
raw | patch | inline | side by side (parent: 0be9bc0)
author | Michael J Gruber <git@drmicha.warpmail.net> | |
Tue, 21 Apr 2009 09:21:59 +0000 (11:21 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 21 Apr 2009 16:49:04 +0000 (09:49 -0700) |
Currently, test_create_repo() expects that templates can be found below
`pwd`/.. This assumption fails when tests are run against a git
installed somewhere else or test_create_repo() is called from
subdirectiories (several tests do this).
Therefore, use $TEST_DIRECTORY as introduced in 2d84e9fb and expect
templates to be present in $TEST_DIRECTORY/.. which should be the root
dir of the git checkout.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
`pwd`/.. This assumption fails when tests are run against a git
installed somewhere else or test_create_repo() is called from
subdirectiories (several tests do this).
Therefore, use $TEST_DIRECTORY as introduced in 2d84e9fb and expect
templates to be present in $TEST_DIRECTORY/.. which should be the root
dir of the git checkout.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/test-lib.sh | patch | blob | history |
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 4bd986f43091715432bb4b740cfe4f0e0701cf85..dad1437fa49596cf6f36b40b1ab18b008620a246 100644 (file)
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
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=$TEST_DIRECTORY/../templates/blt/" >&3 2>&4 ||
error "cannot run git init -- have you built things yet?"
mv .git/hooks .git/hooks-disabled
cd "$owd"