t3404: use configured shell instead of /bin/sh
authorJeff King <peff@peff.net>
Thu, 21 Feb 2008 00:00:44 +0000 (19:00 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Feb 2008 04:21:43 +0000 (20:21 -0800)
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>
t/t3404-rebase-interactive.sh

index e5ed74545b8a2ac9c2063b2ae40d7c661bda0260..62e65d704b37eb92509a8ad7e844cea8a675ed50 100755 (executable)
@@ -61,8 +61,8 @@ test_expect_success 'setup' '
        git tag I
 '
 
-cat > fake-editor.sh <<\EOF
-#!/bin/sh
+echo "#!$SHELL" >fake-editor
+cat >> fake-editor.sh <<\EOF
 case "$1" in
 */COMMIT_EDITMSG)
        test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1"