expose a helper function peel_to_type().
[gitweb.git] / t / t5300-pack-object.sh
index 4f350dd4ec3658357a7e69f54fb64709a22a2bc9..cd3c149800395553cc973317ef41e89e53771f60 100755 (executable)
@@ -268,4 +268,10 @@ test_expect_success \
     'make sure index-pack detects the SHA1 collision' \
     '! git-index-pack -o bad.idx test-3.pack'
 
+test_expect_success \
+    'honor pack.packSizeLimit' \
+    'git config pack.packSizeLimit 200 &&
+     packname_4=$(git pack-objects test-4 <obj-list) &&
+     test 3 = $(ls test-4-*.pack | wc -l)'
+
 test_done