git
[Ported from github.com/git/git] Sync with Git 2.56.1
Brought by drakestapleton
git / t / chainlint / if-in-loop.test
| 1 | test_expect_success 'if-in-loop' ' |
| 2 | ( |
| 3 | for i in a b c |
| 4 | do |
| 5 | if false |
| 6 | then |
| 7 | # LINT: missing "&&" on "echo" okay since "exit 1" signals error explicitly |
| 8 | echo "err" |
| 9 | exit 1 |
| 10 | # LINT: missing "&&" on "fi" |
| 11 | fi |
| 12 | foo |
| 13 | # LINT: missing "&&" on "done" |
| 14 | done |
| 15 | bar |
| 16 | ) |
| 17 | ' |