BigW Consortium Gitlab

Commit 4e82d175 by Dmitriy Zaporozhets

Fixed Fixed issue when project default branch selected from non-exists and UI…

Fixed Fixed issue when project default branch selected from non-exists and UI does not allow to change it
parent 7683efc6
......@@ -22,7 +22,7 @@
.input
= f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250
- unless @project.empty_repo?
- if @project.repository.branch_names.any?
.clearfix
= f.label :default_branch, "Default Branch"
.input= f.select(:default_branch, @repository.branch_names, {}, {class: 'chosen'})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment