Browse Source

Do not prematurely reduce branches by maxCount when using branch permissions

tags/v1.2.0
James Moger 11 years ago
parent
commit
8481ab5b01
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/com/gitblit/wicket/panels/BranchesPanel.java

+ 2
- 2
src/com/gitblit/wicket/panels/BranchesPanel.java View File

@@ -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);

Loading…
Cancel
Save