James Moger
2011-06-05 f08c1ca55e1ffaef81f3d6514aa4bffa5d716c5b
src/com/gitblit/wicket/panels/BranchesPanel.java
@@ -28,12 +28,11 @@
import org.eclipse.jgit.lib.Constants;
import org.eclipse.jgit.lib.Repository;
import com.gitblit.models.RefModel;
import com.gitblit.models.RepositoryModel;
import com.gitblit.utils.JGitUtils;
import com.gitblit.utils.StringUtils;
import com.gitblit.wicket.LinkPanel;
import com.gitblit.wicket.WicketUtils;
import com.gitblit.wicket.models.RefModel;
import com.gitblit.wicket.models.RepositoryModel;
import com.gitblit.wicket.pages.BranchesPage;
import com.gitblit.wicket.pages.LogPage;
import com.gitblit.wicket.pages.SummaryPage;
@@ -49,9 +48,9 @@
      // branches
      List<RefModel> branches = new ArrayList<RefModel>();
      branches.addAll(JGitUtils.getLocalBranches(r, maxCount));
      branches.addAll(JGitUtils.getLocalBranches(r, false, maxCount));
      if (model.showRemoteBranches) {
         branches.addAll(JGitUtils.getRemoteBranches(r, maxCount));
         branches.addAll(JGitUtils.getRemoteBranches(r, false, maxCount));
      }
      Collections.sort(branches);
      Collections.reverse(branches);