summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Matthew Ogilvie <mmogilvi_git@miniinfo.net>2009-11-28 11:38:54 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-11-29 18:00:14 -0800
commit42ac496edc3dcd1f0b272da62401f62c47f93312 (patch)
tree6c72b87b8fafea74354e916453dbe64a12e70ee0
parentUpdate draft release notes to 1.6.6 before merging topics for -rc1 (diff)
downloadtgif-42ac496edc3dcd1f0b272da62401f62c47f93312.tar.xz
t2300: use documented technique to invoke git-sh-setup
This is needed to allow the test suite to run against a standard install bin directory instead of GIT_EXEC_PATH. Signed-off-by: Matthew Ogilvie <mmogilvi_git@miniinfo.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xt/t2300-cd-to-toplevel.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t2300-cd-to-toplevel.sh b/t/t2300-cd-to-toplevel.sh
index 3b01ad2e4d..9965bc5c92 100755
--- a/t/t2300-cd-to-toplevel.sh
+++ b/t/t2300-cd-to-toplevel.sh
@@ -8,7 +8,7 @@ test_cd_to_toplevel () {
test_expect_success $3 "$2" '
(
cd '"'$1'"' &&
- . git-sh-setup &&
+ . "$(git --exec-path)"/git-sh-setup &&
cd_to_toplevel &&
[ "$(pwd -P)" = "$TOPLEVEL" ]
)