From 8bc725871269aa47f8ef6db086a4cfedc75ef140 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Mon, 29 Oct 2012 09:19:03 -0400 Subject: [PATCH] Use repository swatch coloring in registrant permissions panel --- 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