Merge branch 'jc/t2300-setup' into HEAD
[gitweb.git] / t / t2300-cd-to-toplevel.sh
index 9965bc5c92445160895ae3ea426c5caf1b3458b3..cccd7d923aae118b3f80aa52763648a2b4b189f2 100755 (executable)
@@ -8,7 +8,8 @@ test_cd_to_toplevel () {
        test_expect_success $3 "$2" '
                (
                        cd '"'$1'"' &&
-                       . "$(git --exec-path)"/git-sh-setup &&
+                       PATH="$(git --exec-path):$PATH" &&
+                       . git-sh-setup &&
                        cd_to_toplevel &&
                        [ "$(pwd -P)" = "$TOPLEVEL" ]
                )