Merge branch 'jc/rev-list-simplify-merges-first-parent'
[gitweb.git] / t / t5300-pack-object.sh
index d9d856b87b2a896d4f80a3e62e6d1925b680a680..300ed910a5baa6ac0657c59ecc02a2516d99c6cd 100755 (executable)
@@ -418,4 +418,9 @@ test_expect_success \
     'test_must_fail git index-pack -o bad.idx test-3.pack 2>msg &&
      grep "SHA1 COLLISION FOUND" msg'
 
+test_expect_success \
+    'make sure index-pack detects the SHA1 collision (large blobs)' \
+    'test_must_fail git -c core.bigfilethreshold=1 index-pack -o bad.idx test-3.pack 2>msg &&
+     grep "SHA1 COLLISION FOUND" msg'
+
 test_done