diff options
author | Matthew Ogilvie <mmogilvi_git@miniinfo.net> | 2009-11-28 11:38:54 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-29 18:00:14 -0800 |
commit | 42ac496edc3dcd1f0b272da62401f62c47f93312 (patch) | |
tree | 6c72b87b8fafea74354e916453dbe64a12e70ee0 /t/t2300-cd-to-toplevel.sh | |
parent | 66abce05dd5b9da9c889034781dc3de38b6e231b (diff) | |
download | git-42ac496edc3dcd1f0b272da62401f62c47f93312.tar.gz |
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>
Diffstat (limited to 't/t2300-cd-to-toplevel.sh')
-rwxr-xr-x | t/t2300-cd-to-toplevel.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t2300-cd-to-toplevel.sh b/t/t2300-cd-to-toplevel.sh index 3b01ad2e4d..9965bc5c92 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" ] ) |