]> source.dussan.org Git - jgit.git/commit
Don't fail when trying to prune pack which is already gone 25/1203925/3
authorJacek Centkowski <geminica.programs@gmail.com>
Mon, 11 Nov 2024 11:48:20 +0000 (12:48 +0100)
committerLuca Milanesio <luca.milanesio@gmail.com>
Wed, 20 Nov 2024 08:54:33 +0000 (08:54 +0000)
commit592a75800543f83486211b2191707f21695eb955
treebfb58d5bba189554d35c33429494bb9a414e955b
parentf7a4dd03560d10d504f63b9e2caeb32a6bf2cc0b
Don't fail when trying to prune pack which is already gone

Update the TestRepository.prunePacked so that it doesn't fail if a pack
to be pruned is already gone.
It is especially handy when the prunePacked function is called in
`TestRepository.packAndPrune` function after the repo moves on after
GC was performed.

Change-Id: I01b4ddbaddec1fdc24cfbb967e0edfe0de6c4b7c
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/TestRepository.java
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/file/GcNumberOfPackFilesSinceBitmapStatisticsTest.java