Skip to content

Commit d1311be

Browse files
committed
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
2 parents caa227f + fe6f2b0 commit d1311be

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

t/t5304-prune.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,4 +341,12 @@ test_expect_success 'prune: handle expire option correctly' '
341341
git prune --no-expire
342342
'
343343

344+
test_expect_success 'trivial prune with bitmaps enabled' '
345+
git repack -adb &&
346+
blob=$(echo bitmap-unreachable-blob | git hash-object -w --stdin) &&
347+
git prune --expire=now &&
348+
git cat-file -e HEAD &&
349+
test_must_fail git cat-file -e $blob
350+
'
351+
344352
test_done

0 commit comments

Comments
 (0)