t/t3437: fixup here-docs in the 'setup' test

The most common way to format here-docs in Git test scripts is for the
body and EOF to be indented the same amount as the command which opened
the here-doc. Fix a few here-docs in this script to conform to that
standard and also remove the unnecessary curly braces.

Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Mentored-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Charvi Mendiratta <charvi077@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Charvi Mendiratta
2021-02-10 17:06:45 +05:30
committed by Junio C Hamano
parent 75ace8329c
commit 17665167bb

View File

@ -39,9 +39,9 @@ get_author () {
test_expect_success 'setup' '
cat >message <<-EOF &&
amend! B
${EMPTY}
$EMPTY
new subject
${EMPTY}
$EMPTY
new
body
EOF
@ -71,19 +71,19 @@ test_expect_success 'setup' '
test_tick &&
git commit --allow-empty -F - <<-EOF &&
amend! B
${EMPTY}
$EMPTY
B
${EMPTY}
$EMPTY
edited 1
EOF
test_tick &&
git commit --allow-empty -F - <<-EOF &&
amend! amend! B
${EMPTY}
$EMPTY
B
${EMPTY}
$EMPTY
edited 1
${EMPTY}
$EMPTY
edited 2
EOF
echo B2 >B &&
@ -93,13 +93,13 @@ test_expect_success 'setup' '
test_tick &&
git commit -a -F - <<-EOF &&
amend! amend! amend! B
${EMPTY}
$EMPTY
B
${EMPTY}
$EMPTY
edited 1
${EMPTY}
$EMPTY
edited 2
${EMPTY}
$EMPTY
edited 3
EOF