diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-03-22 22:43:18 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-03-23 20:56:49 -0700 |
commit | 99a64e4b73c38b5cb32dea5d4bd71c70079cae15 (patch) | |
tree | 200a3f9d058fb6faa54b7668710930e732660a39 /git-merge-one-file.sh | |
parent | Merge branch 'js/rebase-helper' (diff) | |
download | tgif-99a64e4b73c38b5cb32dea5d4bd71c70079cae15.tar.xz |
tests: lint for run-away here-doc
We found a few run-away here documents that are started with an
end-of-here-doc marker that is incorrectly spelled, e.g.
git some command >actual &&
cat <<EOF >expect
...
EOF &&
test_cmp expect actual
which ends up slurping the entire remainder of the script as if it
were the data. Often the command that gets misused like this exits
without failure (e.g. "cat" in the above example), which makes the
command appear to work, without ever executing the remainder of the
test.
Piggy-back on the test that catches &&-chain breakage to detect this
case as well.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-merge-one-file.sh')
0 files changed, 0 insertions, 0 deletions