500 error on directory where submodule is located
Created by: N3XT0R
Hello Guys,
i had created in gitlab a repository for a module for a Project, this Repository i had registered inside another project as a submodule.
So when i trying to get the modules Directory view inside the Gitlab WebGUI, than appears a 500 error.
Log:
Processing by Projects::TreeController#show as HTML
Parameters: {"project_id"=>"ib/xconf-2-reseller", "id"=>"develop/module"}
Completed 500 Internal Server Error in 42ms
ActionView::Template::Error (undefined method `[]' for nil:NilClass):
1: %tr{ class: "tree-item" }
2: %td.tree-item-file-name
3: %i.fa.fa-archive
4: = submodule_link(submodule_item, @ref)
5: %td
6: %td.hidden-xs
app/models/repository.rb:169:in `method_missing'
app/models/repository.rb:231:in `submodule_url_for'
app/helpers/submodule_helper.rb:6:in `submodule_links'
app/helpers/diff_helper.rb:140:in `submodule_link'
app/views/projects/tree/_submodule_item.html.haml:4:in `_app_views_projects_tree__submodule_item_html_haml___2297852807308961645_70276729045800'
app/helpers/tree_helper.rb:21:in `render_tree'
app/views/projects/tree/_tree.html.haml:42:in `_app_views_projects_tree__tree_html_haml__2635487318074036461_70276661599920'
app/views/projects/tree/show.html.haml:9:in `_app_views_projects_tree_show_html_haml__699860618868555603_70276656514200'
app/controllers/projects/tree_controller.rb:18:in `show'
i am using the Gitlab Version 7.8.1