Thread (16 messages) flat view 16 messages, 2 authors, 2016-06-15
STALE3745d

[PATCH 06/10] t2300: use documented technique to invoke git-sh-setup

From: Matthew Ogilvie <hidden>
Date: 2016-06-15 22:46:01
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help