protected void runImpl() throws IOException, Failure {
try {
GarbageCollectCommand gc = Git.wrap(repo).gc();
logGcInfo("before:", gc.getStatistics());
gc.setProgressMonitor(NullProgressMonitor.INSTANCE);
Properties statistics = gc.call();
logGcInfo("after: ", statistics);
} catch (Exception e) {
throw new Failure(1, "fatal: Cannot run gc: ", e);
}
}