Skip to content

Commit

Permalink
t3404: use configured shell instead of /bin/sh
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Feb 21, 2008
1 parent c1867ce commit 1bd38e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/t3404-rebase-interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1bd38e8

Please sign in to comment.