aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2008-02-20 19:00:44 -0500
committerJunio C Hamano <gitster@pobox.com>2008-02-20 20:21:43 -0800
commit1bd38e8dcca03e318d6000d62cf74c541945a8ba (patch)
tree5480e489d19e071d3a183367606c365f6fbbf440 /t
parentc1867cea90f8e7ee8e1be3fc07a402dde1b2666d (diff)
downloadgit-1bd38e8dcca03e318d6000d62cf74c541945a8ba.tar.gz
git-1bd38e8dcca03e318d6000d62cf74c541945a8ba.tar.xz
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>
Diffstat (limited to 't')
-rwxr-xr-xt/t3404-rebase-interactive.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh
index e5ed74545..62e65d704 100755
--- a/t/t3404-rebase-interactive.sh
+++ b/t/t3404-rebase-interactive.sh
@@ -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"