t3701: fix here document

A broken here-document was not caught because end of file is taken by
an implicit end of the here document (POSIX does not seem to say it is
an error to lack the delimiter), and everything in the test just turned
into a single "cat into a file".

Noticed-by: Kacper Kornet <draenog@pld-linux.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Junio C Hamano 2011-05-05 11:28:52 -07:00
parent 9fee24cac8
commit 8fe6177ac6
1 changed files with 2 additions and 3 deletions

View File

@ -82,10 +82,9 @@ EOF
' '


test_expect_success PERL 'setup fake editor' ' test_expect_success PERL 'setup fake editor' '
cat >fake_editor.sh <<EOF >fake_editor.sh &&
EOF
chmod a+x fake_editor.sh && chmod a+x fake_editor.sh &&
test_set_editor "$(pwd)/fake_editor.sh" && test_set_editor "$(pwd)/fake_editor.sh"
' '


test_expect_success PERL 'dummy edit works' ' test_expect_success PERL 'dummy edit works' '