3 test_description='Test cloning a repository larger than 2 gigabyte'
6 test -z "$GIT_TEST_CLONE_2GB" &&
7 say "Skipping expensive 2GB clone test; enable it with GIT_TEST_CLONE_2GB=t" &&
11 test_expect_success 'setup' '
13 git config pack.compression 0 &&
14 git config pack.depth 0 &&
15 blobsize=$((20*1024*1024)) &&
16 blobcount=$((2*1024*1024*1024/$blobsize+1)) &&
18 (while test $i -le $blobcount
20 printf "Generating blob $i/$blobcount\r" >&2 &&
21 printf "blob\nmark :$i\ndata $blobsize\n" &&
22 #test-genrandom $i $blobsize &&
23 printf "%-${blobsize}s" $i &&
24 echo "M 100644 :$i $i" >> commit
28 echo "commit refs/heads/master" &&
29 echo "author A U Thor <author@email.com> 123456789 +0000" &&
30 echo "committer C O Mitter <committer@email.com> 123456789 +0000" &&
39 test_expect_success 'clone' '
41 git clone --bare --no-hardlinks . clone