aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-05-09 00:37:27 +0900
committerJunio C Hamano <gitster@pobox.com>2019-05-09 00:37:27 +0900
commitd1311beb8ee22802a30279c11cf5cce936c5c353 (patch)
treeddfd8258bcf7b61d656a572240db97037bb36233
parentcaa227ff458f34155ef4e974ba9e57c857c02c01 (diff)
parentfe6f2b081fea2d1da16895102e3c61fc0e1bd733 (diff)
downloadgit-d1311beb8ee22802a30279c11cf5cce936c5c353.tar.gz
Merge branch 'jk/prune-optim'
A follow-up test for an earlier "git prune" improvements. * jk/prune-optim: t5304: add a test for pruning with bitmaps
-rwxr-xr-xt/t5304-prune.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t5304-prune.sh b/t/t5304-prune.sh
index 1eeb828a15..df60f18fb8 100755
--- a/t/t5304-prune.sh
+++ b/t/t5304-prune.sh
@@ -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