| 1 | 2 (while test $i -le $blobcount |
| 2 | 3 do |
| 3 | 4 printf "Generating blob $i/$blobcount\r" >&2 && |
| 4 | 5 printf "blob\nmark :$i\ndata $blobsize\n" && |
| 5 | 6 #test-tool genrandom $i $blobsize && |
| 6 | 7 printf "%-${blobsize}s" $i && |
| 7 | 8 echo "M 100644 :$i $i" >> commit && |
| 8 | 9 i=$(($i+1)) || |
| 9 | 10 echo $? > exit-status |
| 10 | 11 done && |
| 11 | 12 echo "commit refs/heads/main" && |
| 12 | 13 echo "author A U Thor <author@email.com> 123456789 +0000" && |
| 13 | 14 echo "committer C O Mitter <committer@email.com> 123456789 +0000" && |
| 14 | 15 echo "data 5" && |
| 15 | 16 echo ">2gb" && |
| 16 | 17 cat commit) | |
| 17 | 18 git fast-import --big-file-threshold=2 && |
| 18 | 19 test ! -f exit-status |