Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'jk/prune-optim'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 8 May 2019 15:37:27 +0000
(
00:37
+0900)
committer
Junio 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
patch
|
blob
|
history
raw
(from parent 1:
caa227f
)
diff --git
a/t/t5304-prune.sh
b/t/t5304-prune.sh
index 1eeb828a15146e9e5040c64b20a31329853f12e7..df60f18fb8caa252a173603258ed09f9a3c2f89d 100755
(executable)
--- 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