From 8481ab5b01b2b848f05e43af345072921c2219b9 Mon Sep 17 00:00:00 2001 From: James Moger Date: Sun, 2 Dec 2012 13:16:19 -0500 Subject: [PATCH] Do not prematurely reduce branches by maxCount when using branch permissions --- src/com/gitblit/wicket/panels/BranchesPanel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/gitblit/wicket/panels/BranchesPanel.java b/src/com/gitblit/wicket/panels/BranchesPanel.java index 1bdf451d..26fedc1e 100644 --- a/src/com/gitblit/wicket/panels/BranchesPanel.java +++ b/src/com/gitblit/wicket/panels/BranchesPanel.java @@ -65,14 +65,14 @@ public class BranchesPanel extends BasePanel { user = UserModel.ANONYMOUS; } - List localBranches = JGitUtils.getLocalBranches(r, false, maxCount); + List localBranches = JGitUtils.getLocalBranches(r, false, -1); for (RefModel refModel : localBranches) { if (user.hasBranchPermission(model.name, refModel.reference.getName())) { branches.add(refModel); } } if (model.showRemoteBranches) { - List remoteBranches = JGitUtils.getRemoteBranches(r, false, maxCount); + List remoteBranches = JGitUtils.getRemoteBranches(r, false, -1); for (RefModel refModel : remoteBranches) { if (user.hasBranchPermission(model.name, refModel.reference.getName())) { branches.add(refModel); -- 2.39.5