]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5310-pack-bitmaps.sh
Merge branch 'ab/config-multi-and-nonbool'
[thirdparty/git.git] / t / t5310-pack-bitmaps.sh
index 7d8dee41b0ded364d9b364ab46296c20b2c8eee1..526a5a506eb5b6f1cc46a2ade9118447505c3aa3 100755 (executable)
@@ -404,6 +404,26 @@ test_bitmap_cases () {
                )
        '
 
+       test_expect_success 'pack.preferBitmapTips' '
+               git init repo &&
+               test_when_finished "rm -rf repo" &&
+               (
+                       cd repo &&
+                       git config pack.writeBitmapLookupTable '"$writeLookupTable"' &&
+                       test_commit_bulk --message="%s" 103 &&
+
+                       cat >>.git/config <<-\EOF &&
+                       [pack]
+                               preferBitmapTips
+                       EOF
+                       cat >expect <<-\EOF &&
+                       error: missing value for '\''pack.preferbitmaptips'\''
+                       EOF
+                       git repack -adb 2>actual &&
+                       test_cmp expect actual
+               )
+       '
+
        test_expect_success 'complains about multiple pack bitmaps' '
                rm -fr repo &&
                git init repo &&