Merge branch 'jk/prune-optim'
authorJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2019 15:37:27 +0000 (00:37 +0900)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 May 2019 15:37:27 +0000 (00:37 +0900)
A follow-up test for an earlier "git prune" improvements.

* jk/prune-optim:
t5304: add a test for pruning with bitmaps

t/t5304-prune.sh
index 1eeb828a15146e9e5040c64b20a31329853f12e7..df60f18fb8caa252a173603258ed09f9a3c2f89d 100755 (executable)
@@ -341,4 +341,12 @@ test_expect_success 'prune: handle expire option correctly' '
        git prune --no-expire
 '
 
+test_expect_success 'trivial prune with bitmaps enabled' '
+       git repack -adb &&
+       blob=$(echo bitmap-unreachable-blob | git hash-object -w --stdin) &&
+       git prune --expire=now &&
+       git cat-file -e HEAD &&
+       test_must_fail git cat-file -e $blob
+'
+
 test_done