From 42ac496edc3dcd1f0b272da62401f62c47f93312 Mon Sep 17 00:00:00 2001 From: Matthew Ogilvie Date: Sat, 28 Nov 2009 11:38:54 -0700 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- t/t2300-cd-to-toplevel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" ] ) -- 2.30.2