From ddec289815d4bd0e77d07b965b05b6a639f2c80d Mon Sep 17 00:00:00 2001 From: Guillaume Sauthier <guillaume.sauthier@peergreen.com> Date: Mon, 05 Nov 2012 12:13:32 -0500 Subject: [PATCH] Fixes and reuse Bootstrap CSS in HTML sendmail (pull request #52) --- src/com/gitblit/utils/ActivityUtils.java | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/src/com/gitblit/utils/ActivityUtils.java b/src/com/gitblit/utils/ActivityUtils.java index 02a9924..e389e64 100644 --- a/src/com/gitblit/utils/ActivityUtils.java +++ b/src/com/gitblit/utils/ActivityUtils.java @@ -82,6 +82,9 @@ Map<String, Activity> activity = new HashMap<String, Activity>(); for (RepositoryModel model : models) { if (model.hasCommits && model.lastChange.after(thresholdDate)) { + if (model.isCollectingGarbage) { + continue; + } Repository repository = GitBlit.self() .getRepository(model.name); List<String> branches = new ArrayList<String>(); @@ -94,7 +97,7 @@ branches.add(objectId); } Map<ObjectId, List<RefModel>> allRefs = JGitUtils - .getAllRefs(repository); + .getAllRefs(repository, model.showRemoteBranches); for (String branch : branches) { String shortName = branch; -- Gitblit v1.9.1