Commit 4e82d1752ff8595ad35e9eac69134a6bdf18e626
1 parent
7683efc6
Exists in
master
and in
4 other branches
Fixed Fixed issue when project default branch selected from non-exists and UI do…
…es not allow to change it
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/projects/edit.html.haml
... | ... | @@ -22,7 +22,7 @@ |
22 | 22 | .input |
23 | 23 | = f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250 |
24 | 24 | |
25 | - - unless @project.empty_repo? | |
25 | + - if @project.repository.branch_names.any? | |
26 | 26 | .clearfix |
27 | 27 | = f.label :default_branch, "Default Branch" |
28 | 28 | .input= f.select(:default_branch, @repository.branch_names, {}, {class: 'chosen'}) | ... | ... |