summaryrefslogtreecommitdiffstats
path: root/src/com/gitblit/wicket/pages/EditRepositoryPage.java
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2012-02-02 20:02:40 -0500
committerJames Moger <james.moger@gitblit.com>2012-02-02 20:02:40 -0500
commit90b8d7e0e1b5e5ed296c1213168b9a8937ac66fd (patch)
tree8ec5ffcd8ead8d9d23aa4a9aa8be5a323f4c6272 /src/com/gitblit/wicket/pages/EditRepositoryPage.java
parentdf02920703f6fe191b80fc679e01e95a6b1831c0 (diff)
downloadgitblit-90b8d7e0e1b5e5ed296c1213168b9a8937ac66fd.tar.gz
gitblit-90b8d7e0e1b5e5ed296c1213168b9a8937ac66fd.zip
Refactored and unit tested updating HEAD feature
Diffstat (limited to 'src/com/gitblit/wicket/pages/EditRepositoryPage.java')
-rw-r--r--src/com/gitblit/wicket/pages/EditRepositoryPage.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/gitblit/wicket/pages/EditRepositoryPage.java b/src/com/gitblit/wicket/pages/EditRepositoryPage.java
index ec52aaf8..a259a995 100644
--- a/src/com/gitblit/wicket/pages/EditRepositoryPage.java
+++ b/src/com/gitblit/wicket/pages/EditRepositoryPage.java
@@ -273,11 +273,11 @@ public class EditRepositoryPage extends RootSubPage {
form.add(new TextField<String>("origin").setEnabled(false/* isCreate */));
// allow relinking HEAD to a branch or tag other than master on edit repository
- List<String> availableHeads = new ArrayList<String>();
- if (!ArrayUtils.isEmpty(repositoryModel.availableHeads)) {
- availableHeads.addAll(repositoryModel.availableHeads);
+ List<String> availableRefs = new ArrayList<String>();
+ if (!ArrayUtils.isEmpty(repositoryModel.availableRefs)) {
+ availableRefs.addAll(repositoryModel.availableRefs);
}
- form.add(new DropDownChoice<String>("defaultHead", availableHeads).setEnabled(!isCreate));
+ form.add(new DropDownChoice<String>("HEAD", availableRefs).setEnabled(!isCreate));
// federation strategies - remove ORIGIN choice if this repository has
// no origin.