@matheusbsbs / matheus-bagliano / commits / 1bd38e8dcc
Fork 0

t3404: use configured shell instead of /bin/sh

The fake-editor shell script invoked /bin/sh; normally this is fine, unless the /bin/sh doesn't meet our compatibility requirements, as is the case with Solaris. Specifically, the $() syntax used by fake-editor is not understood. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Feb 20, 2008 at 19:00 UTC 1bd38e8dcca03e318d6000d62cf74c541945a8ba
1 file changed +2 -2
t/t3404-rebase-interactive.sh
+2 -2
@@ -61,8 +61,8 @@ test_expect_success 'setup' '
61 git tag I
62 '
63
64 -cat > fake-editor.sh <<\EOF
65 -#!/bin/sh
64 +echo "#!$SHELL" >fake-editor
65 +cat >> fake-editor.sh <<\EOF
66 case "$1" in
67 */COMMIT_EDITMSG)
68 test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1"