My project has the following structure:
project/
apps/
submodule_1/
folder/
submodule_1_1/
..
..
...
submodule_n/
..
project is located at: https://gitlab.example.com/group/subgroup/project.git
submodule_1 is located at: https://git.example.com/group/subgroup/apps/submodule_1.git
submodule_1_1 is a submodule of submodule_1 and located at https://git.example.com/othergroup/submodule_1_1.git
project/.gitmodules
contains the following entry for submodule_1:
[submodule "apps/submodule_1"]
path = apps/submodule_1
url = ../../../group/subgroup/apps/submodule_1.git
branch = master
This works as expected. Now I have to configure project/apps/submodule_1/folder/submodule_1_1
. I tried setting:
[submodule "apps/submodule_1"]
path = apps/submodule_1
url = ../../../othergroup/submodule_1_1.git
branch = master
But this doesn't work. What does work is setting:
[submodule "apps/submodule_1"]
path = apps/submodule_1
url = ../../../../../othergroup/submodule_1_1.git
branch = master
but I don't understand why this works. If I checkout submodule_1
stand-alone and try to clone the submodules, this fails. It only works from within gitlab-ci.
For this reason, gitlab-ci is currently unusable at this point, because I can't break the gitmodules config for stand-alone builds.
I wonder if I'm doing something wrong or if this is a bug in gitlab-ci.
username-removed-1259472 (513aff5e) at 14 Sep 11:27
username-removed-1259472 (513aff5e) at 14 Sep 11:25
Include /var/opt/gitlab/nginx in update-permissions