From d60a425fbe5d67732d4e2b5275d496c47c36b474 Mon Sep 17 00:00:00 2001 From: Guillaume Sauthier <guillaume.sauthier@peergreen.com> Date: Mon, 05 Nov 2012 11:30:06 -0500 Subject: [PATCH] HTML email notification methods and hook (pull request #51) --- 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