diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java index adc6bf11a..85533d6a3 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java @@ -1764,6 +1764,7 @@ private void findObjectsToPack(final ProgressMonitor countingMonitor, countingMonitor.update((int) pack.getObjectCount()); endPhase(countingMonitor); stats.timeCounting = System.currentTimeMillis() - countingStart; + stats.bitmapIndexMisses = -1; } private void findObjectsToPackUsingBitmaps( @@ -2171,6 +2172,7 @@ public long getTotalObjects() { /** * @return the count of objects that needed to be discovered through an * object walk because they were not found in bitmap indices. + * Returns -1 if no bitmap indices were found. * * @since 4.0 */