]> source.dussan.org Git - gitblit.git/commitdiff
Do not prematurely reduce branches by maxCount when using branch permissions
authorJames Moger <james.moger@gitblit.com>
Sun, 2 Dec 2012 18:16:19 +0000 (13:16 -0500)
committerJames Moger <james.moger@gitblit.com>
Sun, 2 Dec 2012 18:16:19 +0000 (13:16 -0500)
src/com/gitblit/wicket/panels/BranchesPanel.java

index 1bdf451dee1ff61b1acb7100a3c45fcac60ed39c..26fedc1ecd7f6e1605dd51109eacf22047fe8cbb 100644 (file)
@@ -65,14 +65,14 @@ public class BranchesPanel extends BasePanel {
                        user = UserModel.ANONYMOUS;\r
                }\r
 \r
-               List<RefModel> localBranches = JGitUtils.getLocalBranches(r, false, maxCount);\r
+               List<RefModel> localBranches = JGitUtils.getLocalBranches(r, false, -1);\r
                for (RefModel refModel : localBranches) {\r
                        if (user.hasBranchPermission(model.name, refModel.reference.getName())) {\r
                                branches.add(refModel);\r
                        }\r
                }\r
                if (model.showRemoteBranches) {\r
-                       List<RefModel> remoteBranches = JGitUtils.getRemoteBranches(r, false, maxCount);\r
+                       List<RefModel> remoteBranches = JGitUtils.getRemoteBranches(r, false, -1);\r
                        for (RefModel refModel : remoteBranches) {\r
                                if (user.hasBranchPermission(model.name, refModel.reference.getName())) {\r
                                        branches.add(refModel);\r