Fixed Fixed issue when project default branch selected from non-exists and UI does not allow to change it

This commit is contained in:
Dmitriy Zaporozhets
2013-08-02 15:20:55 +03:00
parent 7683efc6be
commit 4e82d1752f
+1 -1
View File
@@ -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'})