[PATCH 06/10] t2300: use documented technique to invoke git-sh-setup
- From
- Matthew Ogilvie <mmogilvi_git@miniinfo.net>
- Date
- Jan 24, 2009, 23:43 UTC
- Message-ID
- <1232840601-24696-7-git-send-email-mmogilvi_git@miniinfo.net>
- In-Reply-To
- <1232840601-24696-6-git-send-email-mmogilvi_git@miniinfo.net>
This is needed to allow the test suite to run against a minimal bin directory instead of GIT_EXEC_PATH.
Signed-off-by: Matthew Ogilvie <mmogilvi_git@miniinfo.net> --- 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 e42cbfe..eac348a 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 "$2" ' ( cd '"'$1'"' && - . git-sh-setup && + . "$(git --exec-path)"/git-sh-setup && cd_to_toplevel && [ "$(unset PWD; /bin/pwd)" = "$TOPLEVEL" ] )
-- 1.6.1.81.g9833d.dirty