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>
This commit is contained in:
parent
c1867cea90
commit
1bd38e8dcc
@ -61,8 +61,8 @@ test_expect_success 'setup' '
|
|||||||
git tag I
|
git tag I
|
||||||
'
|
'
|
||||||
|
|
||||||
cat > fake-editor.sh <<\EOF
|
echo "#!$SHELL" >fake-editor
|
||||||
#!/bin/sh
|
cat >> fake-editor.sh <<\EOF
|
||||||
case "$1" in
|
case "$1" in
|
||||||
*/COMMIT_EDITMSG)
|
*/COMMIT_EDITMSG)
|
||||||
test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1"
|
test -z "$FAKE_COMMIT_MESSAGE" || echo "$FAKE_COMMIT_MESSAGE" > "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user