summaryrefslogtreecommitdiff
path: root/t/t2300-cd-to-toplevel.sh
diff options
context:
space:
mode:
authorMatthew Ogilvie <mmogilvi_git@miniinfo.net>2009-11-28 11:38:54 -0700
committerJunio C Hamano <gitster@pobox.com>2009-11-29 18:00:14 -0800
commit42ac496edc3dcd1f0b272da62401f62c47f93312 (patch)
tree6c72b87b8fafea74354e916453dbe64a12e70ee0 /t/t2300-cd-to-toplevel.sh
parent66abce05dd5b9da9c889034781dc3de38b6e231b (diff)
downloadgit-42ac496edc3dcd1f0b272da62401f62c47f93312.tar.gz
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>
Diffstat (limited to 't/t2300-cd-to-toplevel.sh')
-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" ]
)