X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=t%2Ft2300-cd-to-toplevel.sh;h=9965bc5c92445160895ae3ea426c5caf1b3458b3;hb=127f04522292fc62152762405c92d6acca4dbcb5;hp=3b01ad2e4de152d23bbe8267d3b1a5cafd615e88;hpb=5c44cc9ea29b74ed10f5f239791b2c2f9586f197;p=git.git diff --git a/t/t2300-cd-to-toplevel.sh b/t/t2300-cd-to-toplevel.sh index 3b01ad2e4..9965bc5c9 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" ] )