Skip to content

Commit 42ac496

Browse files
Matthew Ogilviegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 66abce0 commit 42ac496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t2300-cd-to-toplevel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ test_cd_to_toplevel () {
88
test_expect_success $3 "$2" '
99
(
1010
cd '"'$1'"' &&
11-
. git-sh-setup &&
11+
. "$(git --exec-path)"/git-sh-setup &&
1212
cd_to_toplevel &&
1313
[ "$(pwd -P)" = "$TOPLEVEL" ]
1414
)

0 commit comments

Comments
 (0)