path: root/t/
diff options
authorJunio C Hamano <>2017-01-31 21:32:06 (GMT)
committerJunio C Hamano <>2017-01-31 21:32:06 (GMT)
commit81037171a59db996e05b98878359362ead6029f9 (patch)
tree857bc58982cc30c418c38906f88894736dd0877f /t/
parentbb7c47a452ce4fa22d25da6a5e7684dbbf7033e2 (diff)
parent1c409a705cb30ae3db6cdd48757c4a85f51456d4 (diff)
Merge branch 'dt/disable-bitmap-in-auto-gc' into maint
It is natural that "git gc --auto" may not attempt to pack everything into a single pack, and there is no point in warning when the user has configured the system to use the pack bitmap, leading to disabling further "gc". * dt/disable-bitmap-in-auto-gc: repack: die on incremental + write-bitmap-index auto gc: don't write bitmaps for incremental repacks
Diffstat (limited to 't/')
1 files changed, 3 insertions, 5 deletions
diff --git a/t/ b/t/
index b4c7a6f..424bec7 100755
--- a/t/
+++ b/t/
@@ -118,12 +118,10 @@ test_expect_success 'fetch (partial bitmap)' '
test_cmp expect actual
-test_expect_success 'incremental repack cannot create bitmaps' '
+test_expect_success 'incremental repack fails when bitmaps are requested' '
test_commit more-1 &&
- find .git/objects/pack -name "*.bitmap" >expect &&
- git repack -d &&
- find .git/objects/pack -name "*.bitmap" >actual &&
- test_cmp expect actual
+ test_must_fail git repack -d 2>err &&
+ test_i18ngrep "Incremental repacks are incompatible with bitmap" err
test_expect_success 'incremental repack can disable bitmaps' '