]> git.ipfire.org Git - thirdparty/git.git/blob - t/chainlint/loop-detect-failure.test
The ninth batch
[thirdparty/git.git] / t / chainlint / loop-detect-failure.test
1 git init r1 &&
2 # LINT: loop handles failure explicitly with "|| return 1"
3 for n in 1 2 3 4 5
4 do
5 echo "This is file: $n" > r1/file.$n &&
6 git -C r1 add file.$n &&
7 git -C r1 commit -m "$n" || return 1
8 done &&
9
10 git init r2 &&
11 # LINT: loop fails to handle failure explicitly with "|| return 1"
12 for n in 1000 10000
13 do
14 printf "%"$n"s" X > r2/large.$n &&
15 git -C r2 add large.$n &&
16 git -C r2 commit -m "$n"
17 done