summaryrefslogtreecommitdiff
path: root/t/t2300-cd-to-toplevel.sh
diff options
context:
space:
mode:
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" ]
)