X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft5300-pack-object.sh;h=7649b810b1469724ff738fb0bf8b23ea61b37bda;hb=34bb92eca4259b3db8cb9bfad5fcac4ff2be139b;hp=e2aa254eae2ea930f29c4735f3f3d11bc790c455;hpb=b30ccd757354ea09b41e4359b0a5ab429d12f02e;p=git.git diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index e2aa254ea..7649b810b 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -16,7 +16,9 @@ test_expect_success \ perl -e "print \"a\" x 4096;" > a && perl -e "print \"b\" x 4096;" > b && perl -e "print \"c\" x 4096;" > c && - git update-index --add a b c && + test-genrandom "seed a" 2097152 > a_big && + test-genrandom "seed b" 2097152 > b_big && + git update-index --add a a_big b b_big c && cat c >d && echo foo >>d && git update-index --add d && tree=`git write-tree` && commit=`git commit-tree $tree msg && - grep "SHA1 COLLISION FOUND" msg' - -test_expect_success \ - 'honor pack.packSizeLimit' \ - 'git config pack.packSizeLimit 200 && - packname_4=$(git pack-objects test-4 msg && + grep "SHA1 COLLISION FOUND" msg' + test_done