Skip to content

Commit 67ca08a

Browse files
committed
Fix repack test to add dangling commit which repack should remove
Signed-off-by: James Couball <jcouball@yahoo.com>
1 parent 27be99c commit 67ca08a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/units/test_repack.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ def test_repack
1313
# see how big the repo is
1414
size1 = r1.repo_size
1515

16+
# This will leave the previous commit as a dangling commit which repack
17+
# should remove
18+
r1.reset('HEAD~1')
19+
1620
r1.repack
1721

1822
# see how big the repo is now, should be smaller

0 commit comments

Comments
 (0)