Fix edit project page when repo does not exist
This commit is contained in:
parent
d7f551bd3a
commit
d0d10992bc
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@
|
|||
.input
|
||||
= f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250
|
||||
|
||||
- if @project.repository.branch_names.any?
|
||||
- if @project.repository.exists? && @project.repository.branch_names.any?
|
||||
.clearfix
|
||||
= f.label :default_branch, "Default Branch"
|
||||
.input= f.select(:default_branch, @repository.branch_names, {}, {class: 'chosen'})
|
||||
|
|
Loading…
Reference in a new issue