Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #6304

Closed
Open
Created Feb 12, 2014 by Administrator@rootOwner

Git SubModules

Created by: pupaxxo

Hi, I went in the files browser, go into a folder with a git submodules and i got a 500 error I have installed gitlab on a dedicated machine using the latest version from the master branch (GitLab 6.6.0.pre 1284f21c). Yesterday i pushed a new commit with a git submodules of a github repos, the git submodules path is project/public/. After i went in the file browser and i entered into the folder (public) and it gave me a 500 error. Here's is the error:

Started GET "/domotica/ndomotica/tree/master/public" for 127.0.0.1 at 2014-02-12 20:49:32 +0100
Processing by Projects::TreeController#show as HTML
Parameters: {"project_id"=>"domotica/ndomotica", "id"=>"master/public"}
Rendered shared/_ref_switcher.html.haml (7.2ms)
Rendered projects/repositories/_download_archive.html.haml (273.2ms)
Rendered projects/tree/_spinner.html.haml (0.3ms)
Rendered projects/tree/_spinner.html.haml (0.2ms)
Rendered projects/tree/_spinner.html.haml (0.2ms)
Rendered projects/tree/_spinner.html.haml (0.2ms)
Rendered projects/tree/_tree_item.html.haml (14.8ms)
Rendered projects/tree/_spinner.html.haml (0.2ms)
Rendered projects/tree/_spinner.html.haml (0.2ms)
Rendered projects/tree/_spinner.html.haml (0.2ms)
Rendered projects/tree/_spinner.html.haml (0.2ms)
Rendered projects/tree/_blob_item.html.haml (14.9ms)
Rendered projects/tree/_submodule_item.html.haml (3.5ms)
Rendered projects/tree/_tree.html.haml (48.5ms)
Rendered projects/tree/show.html.haml within layouts/projects (333.0ms)
Completed 500 Internal Server Error in 530ms
ActionView::Template::Error (wrong number of arguments (0 for 1)):
1: - tree, commit = submodule_links(submodule_item)
2: %tr{ class: "tree-item" }
3: %td.tree-item-file-name
4: = image_tag "submodule.png"
app/models/repository.rb:151:in method_missing'
app/models/repository.rb:199: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___12833675__584493028
app/helpers/tree_helper.rb:19:in `render_tree
app/views/projects/tree/_tree.html.haml:45:in _app_views_projects_tree__tree_html_haml__547032847__562950638
app/views/projects/tree/show.html.haml:6:in _app_views_projects_tree_show_html_haml__969836298__563216308
app/controllers/projects/tree_controller.rb:6:in show
app/controllers/application_controller.rb:57:in set_current_user_for_thread

The results of GitLab Appllication check are all ok. Sorry for my english, it's not my native language!

Assignee
Assign to
Time tracking