Skip to content

Commit 6b13980

Browse files
author
root
committed
Fix #329
1 parent 2c845de commit 6b13980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: app/views/repositories/_form.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149

150150
<p>
151151
<%= label_tag "", l(:label_repository_default_branch) %>
152-
<% if !@repository.new_record? && !@repository.branches.empty? %>
152+
<% if !@repository.new_record? && !@repository.branches.nil? && !@repository.branches.empty? %>
153153
<%= select_tag "extra[default_branch]", options_for_select(@repository.branches.collect{ |b| [b.to_s, b.to_s] }, :selected => @repository.branches.find{ |b| b.is_default}.to_s) %>
154154
<% else %>
155155
<span class="label label-info"><%= @repository.extra[:default_branch] %></span>

0 commit comments

Comments
 (0)