mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
Fix edit project page when repo does not exist
This commit is contained in:
@@ -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'})
|
||||
|
||||
Reference in New Issue
Block a user