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
  • #7554

Closed
Open
Created Aug 20, 2014 by Administrator@rootOwner

If submodule url is relative and ends with “.git”, file tab page gets error 500.

Created by: andrewwutw

If url in .gitmodules file is relative (starts with “../“) and ends with “.git”, like this :

[submodule "hello"]
    path = hello
    url = ../hello.git

Then the file tab page in GitLab will show error 500.

I uploaded the repo into GitLab site (running Enterprise Edition 7.2.0.rc2-ee f41eef16 ):

https://gitlab.com/andrewwu.tw/submodule-test

And its file tab page shows error 500:

https://gitlab.com/andrewwu.tw/submodule-test/tree/master

But, if I add a slash (/) in the end of url, like this :

[submodule "hello"]
    path = hello
    url = ../hello.git/

This file tab page in GitLab is ok.

I uploaded the modified repo into GitLab, too:

https://gitlab.com/andrewwu.tw/submodule-test2

And its file tabs page is ok:

https://gitlab.com/andrewwu.tw/submodule-test2/tree/master

GitHub can handle both form of submodule url without any problem, ex :

https://github.com/andrewwutw/submodule-test https://github.com/andrewwutw/submodule-test2

Assignee
Assign to
Time tracking