I am trying to add a GitLab repository as a GitHub repository submodule, so that when I clone the GitHub repo, I will clone the GitLab repo as well. I have already set up the submodule and it appears that all is working, however when cloning I am unable to get the submodule no matter what I do.
The GitLab repository is on a private GitLab server so I will need to log in, but there appears to be no error or message whatsoever.
I have tried git submodule sync --recursive
as well as git submodule update --recursive
, git submodule update --init --recursive
and git submodule update --recursive --remote
.
Is this impossible or am I just doing something terribly wrong?