]> source.dussan.org Git - jgit.git/commit
Don't fail when trying to prune pack which is already gone 56/1203856/2
authorJacek Centkowski <geminica.programs@gmail.com>
Mon, 11 Nov 2024 11:48:20 +0000 (12:48 +0100)
committerJacek Centkowski <geminica.programs@gmail.com>
Tue, 12 Nov 2024 06:59:57 +0000 (07:59 +0100)
commitfbbd0c3e3e5a940deb18332b116ba869381c6f62
tree2b20cd9ebc7aefd567b774e73fcfc9e30b473f05
parent0dfc30951b5753b3966051c70e5b1c3860fd9fc5
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 prunePacked
function is called in `TestRepository.packAndPrune` function after repo
moves on after the 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