Commit c2789dae34c60eb2fa5f618c3d8a48abce212100

Authored by Dmitriy Zaporozhets
1 parent d68ec5e0

fix project creation

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/projects/_form.html.haml
... ... @@ -29,7 +29,7 @@
29 29 %cite.right= "http://#{GIT_HOST["host"]}/"
30 30 %td= f.text_field :code, :placeholder => "example"
31 31  
32   - - unless @project.heads.empty?
  32 + - unless @project.new_record? || @project.heads.empty?
33 33 %tr
34 34 %td= f.label :default_branch, "Default Branch"
35 35 %td= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:300px;")
... ...