From: Brandon Casey Date: Mon, 29 Aug 2011 20:09:25 +0000 (-0700) Subject: t6030: use $SHELL_PATH to invoke user's preferred shell instead of bare sh X-Git-Tag: v1.7.7-rc1~14^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=381f0d3bd917fa94309214ebe6990c3174a46f4f;p=git.git t6030: use $SHELL_PATH to invoke user's preferred shell instead of bare sh Some platforms (IRIX, Solaris) provide an ancient /bin/sh which chokes on modern shell syntax like $(). SHELL_PATH is provided to allow the user to specify a working sh, let's use it here. Signed-off-by: Brandon Casey Signed-off-by: Junio C Hamano --- diff --git a/t/t6030-bisect-porcelain.sh b/t/t6030-bisect-porcelain.sh index 4fb7d11c4..cd9de634a 100755 --- a/t/t6030-bisect-porcelain.sh +++ b/t/t6030-bisect-porcelain.sh @@ -701,7 +701,7 @@ test_expect_success 'bisect: demonstrate identification of damage boundary' " git bisect reset && git checkout broken && git bisect start broken master --no-checkout && - git bisect run sh -c ' + git bisect run \"\$SHELL_PATH\" -c ' GOOD=\$(git for-each-ref \"--format=%(objectname)\" refs/bisect/good-*) && git rev-list --objects BISECT_HEAD --not \$GOOD >tmp.\$\$ && git pack-objects --stdout >/dev/null < tmp.\$\$