Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/chainlint/loop-detect-failure.test # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / chainlint / loop-detect-failure.test` 19 lines ยท 455 bytes Raw Blame History 1 test_expect_success 'loop-detect-failure' ' 2 git init r1 && 3 # LINT: loop handles failure explicitly with "|| return 1" 4 for n in 1 2 3 4 5 5 do 6 echo "This is file: $n" > r1/file.$n && 7 git -C r1 add file.$n && 8 git -C r1 commit -m "$n" || return 1 9 done && 10 11 git init r2 && 12 # LINT: loop fails to handle failure explicitly with "|| return 1" 13 for n in 1000 10000 14 do 15 printf "%"$n"s" X > r2/large.$n && 16 git -C r2 add large.$n && 17 git -C r2 commit -m "$n" 18 done 19 '