summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-12-02 13:16:19 -0500
committerJames Moger <james.moger@gitblit.com>2012-12-02 13:16:19 -0500
commit8481ab5b01b2b848f05e43af345072921c2219b9 (patch)
treecfcb39e191e62a542913cea5143e731bfe4773dc /src/com/gitblit
parent635006f7b005fad8fc9d7844a103b344eeee51f2 (diff)
downloadgitblit-8481ab5b01b2b848f05e43af345072921c2219b9.tar.gz
gitblit-8481ab5b01b2b848f05e43af345072921c2219b9.zip
Do not prematurely reduce branches by maxCount when using branch permissions
Diffstat (limited to 'src/com/gitblit')
-rw-r--r--src/com/gitblit/wicket/panels/BranchesPanel.java4
1 files 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<RefModel> localBranches = JGitUtils.getLocalBranches(r, false, maxCount);
+ List<RefModel> 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<RefModel> remoteBranches = JGitUtils.getRemoteBranches(r, false, maxCount);
+ List<RefModel> remoteBranches = JGitUtils.getRemoteBranches(r, false, -1);
for (RefModel refModel : remoteBranches) {
if (user.hasBranchPermission(model.name, refModel.reference.getName())) {
branches.add(refModel);