Skip to content

Commit 381f0d3

Browse files
drafnelgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b704a8b commit 381f0d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

t/t6030-bisect-porcelain.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ test_expect_success 'bisect: demonstrate identification of damage boundary' "
701701
git bisect reset &&
702702
git checkout broken &&
703703
git bisect start broken master --no-checkout &&
704-
git bisect run sh -c '
704+
git bisect run \"\$SHELL_PATH\" -c '
705705
GOOD=\$(git for-each-ref \"--format=%(objectname)\" refs/bisect/good-*) &&
706706
git rev-list --objects BISECT_HEAD --not \$GOOD >tmp.\$\$ &&
707707
git pack-objects --stdout >/dev/null < tmp.\$\$

0 commit comments

Comments
 (0)