From: Eric Sunshine Date: Tue, 26 Jun 2018 07:29:36 GMT Subject: [PATCH 04/29] t3303: use standard here-doc tag "EOF" to avoid fooling --chain-lint Message-ID: <20180626073001.6555-5-sunshine@sunshineco.com> In-Reply-To: <20180626073001.6555-1-sunshine@sunshineco.com> An upcoming change will teach --chain-lint to detect &&-chain breakage inside subshells. The check works by performing textual transformations on the test to link the subshell body directly into the parent's &&-chain. Special care is taken with the final statement in a subshell. For instance: statement1 && ( statement2 ) && statement3 is transformed to: statement1 && statement2 && statement3 Notice that "statement2" gains a "&&". Special care is is taken with here-docs since "&&" needs to be added to the "< --- t/t3303-notes-subtrees.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/t/t3303-notes-subtrees.sh b/t/t3303-notes-subtrees.sh index 704aee81ef..e353faa50b 100755 --- a/t/t3303-notes-subtrees.sh +++ b/t/t3303-notes-subtrees.sh @@ -39,7 +39,7 @@ test_expect_success "setup: create $number_of_commits commits" ' while [ $nr -lt $number_of_commits ]; do nr=$(($nr+1)) && test_tick && - cat < $GIT_COMMITTER_DATE data < $GIT_COMMITTER_DATE data <