summaryrefslogtreecommitdiff
path: root/t/chainlint/return-loop.test
blob: ea76c3593ade55a542b096868590c0346ab11cfd (plain)
1
2
3
4
5
6
7
8
test_expect_success 'return-loop' '
while test $i -lt $((num - 5))
do
# LINT: "|| return {n}" valid loop escape outside subshell; no "&&" needed
	git notes add -m "notes for commit$i" HEAD~$i || return 1
	i=$((i + 1))
done
'