Skip to content
Snippets Groups Projects
Commit d0d10992 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix edit project page when repo does not exist

parent d7f551bd
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment