@matheusbsbs / matheus-bagliano / commits / 42ac496edc
Fork 0

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>

Matthew Ogilvie committed Nov 28, 2009 at 11:38 UTC 42ac496edc3dcd1f0b272da62401f62c47f93312
1 file changed +1 -1
t/t2300-cd-to-toplevel.sh
+1 -1
@@ -8,7 +8,7 @@ test_cd_to_toplevel () {
8 test_expect_success $3 "$2" '
9 (
10 cd '"'$1'"' &&
11 - . git-sh-setup &&
11 + . "$(git --exec-path)"/git-sh-setup &&
12 cd_to_toplevel &&
13 [ "$(pwd -P)" = "$TOPLEVEL" ]
14 )