diff options
author | James Moger <james.moger@gitblit.com> | 2012-02-02 20:02:40 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-02-02 20:02:40 -0500 |
commit | 90b8d7e0e1b5e5ed296c1213168b9a8937ac66fd (patch) | |
tree | 8ec5ffcd8ead8d9d23aa4a9aa8be5a323f4c6272 /src/com/gitblit/wicket/pages/EditRepositoryPage.java | |
parent | df02920703f6fe191b80fc679e01e95a6b1831c0 (diff) | |
download | gitblit-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.java | 8 |
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.
|