Skip to content

Commit

Permalink
t2300: use documented technique to invoke git-sh-setup
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthew Ogilvie authored and Junio C Hamano committed Nov 30, 2009
1 parent 66abce0 commit 42ac496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/t2300-cd-to-toplevel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
)
Expand Down

0 comments on commit 42ac496

Please sign in to comment.