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