gitlab ActionView::Template::Error (undefined method `[]' for nil:NilClass):

cuizhipeng 发布于 2015/06/26 16:46
阅读 1K+
收藏 0

这是gielab的production日志

Started GET "/root/medclips/tree/master" for 127.0.0.1 at 2015-06-26 08:28:04 +0000

Processing by Projects::TreeController#show as HTML
  Parameters: {"project_id"=>"root/medclips", "id"=>"master"}
Completed 500 Internal Server Error in 28ms

ActionView::Template::Error (undefined method `[]' for nil:NilClass):
    1: - tree, commit = submodule_links(submodule_item)
    2: %tr{ class: "tree-item" }
    3:   %td.tree-item-file-name
    4:     %i.fa.fa-archive
  app/models/repository.rb:162:in `method_missing'
  app/models/repository.rb:228:in `submodule_url_for'
  app/helpers/submodule_helper.rb:6:in `submodule_links'
  app/views/projects/tree/_submodule_item.html.haml:1:in `_app_views_projects_tree__submodule_item_html_haml___2886692381012183565_32694040'
  app/helpers/tree_helper.rb:19:in `render_tree'
  app/views/projects/tree/_tree.html.haml:42:in `_app_views_projects_tree__tree_html_haml___3522310053741658729_40050320'
  app/views/projects/tree/show.html.haml:9:in `_app_views_projects_tree_show_html_haml___2276457274176067505_41617600'
  app/controllers/projects/tree_controller.rb:13:in `show'


 我点击一个项目的FIles 显示的错误,我的gitlab版本是7.5.3

加载中
返回顶部
顶部