diff options
| author | Junio C Hamano <gitster@pobox.com> | 2019-05-09 00:37:27 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2019-05-09 00:37:27 +0900 |
| commit | d1311beb8ee22802a30279c11cf5cce936c5c353 (patch) | |
| tree | ddfd8258bcf7b61d656a572240db97037bb36233 | |
| parent | caa227ff458f34155ef4e974ba9e57c857c02c01 (diff) | |
| parent | fe6f2b081fea2d1da16895102e3c61fc0e1bd733 (diff) | |
| download | git-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-x | t/t5304-prune.sh | 8 |
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 |
