I have a private install with a repo that contains 1 file and several
submodules. I can't seem to browse the source tree page. I get a nasty
traceback from it, the first few lines looks like this:

A ActionView::TemplateError occurred in trees#show:

  undefined method `[]=' for nil:NilClass
  On line #48 of app/views/trees/show.html.erb

    45:         <% end -%>
    46:         <% if node.is_a? Grit::Submodule -%>
    47:           <td class="meta"></td>
    48:           <td class="meta commit_message">submodule: <%= 
h(node.url(@ref)) -%></td>
    49:         <% else -%>
    50:           <% if !too_many_entries_for_log?(@tree) && last_commit = 
commit_for_tree_path(@repository, node.name) -%>
    51:             <td class="meta"><%= 
last_commit.committed_date.to_s(:short) -%></td>

    vendor/grit/lib/grit/submodule.rb:68:in `config'
    vendor/grit/lib/grit/submodule.rb:62:in `each'
    vendor/grit/lib/grit/submodule.rb:62:in `config'
    vendor/grit/lib/grit/submodule.rb:35:in `url'
    app/views/trees/show.html.erb:48
    app/views/trees/show.html.erb:37:in `each'
    app/views/trees/show.html.erb:37
    vendor/rails/actionpack/lib/action_controller/caching/fragments.rb:43:in 
`call'
    vendor/rails/actionpack/lib/action_controller/caching/fragments.rb:43:in 
`fragment_for'
    vendor/rails/actionpack/lib/action_view/helpers/cache_helper.rb:35:in 
`cache'
    app/views/trees/show.html.erb:29


Other repositories displays fine. This happens in 2.2.1 (and earlier) as
well as the new 2.3.

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to