Closed
Description
Git submodules allow relative URLs which are based on the parent repo URL.
Right now this is not supported, ie. adding a submodule configuration in .gitmodules
with a relative URL will fail when cloning in the add
or update
Submodule
.
A sample stack trace when calling submodule.update(init=True)
:
GitCommandError
Cmd('git') failed due to: exit code(128)
cmdline: git clone -n --separate-git-dir=/opt/parent_project/.git/modules/submodule_project -v ../../my-company/submodule-project.git /opt/parent_project/submodule_project
stderr: 'fatal: repository '../../my-company/submodule-project.git' does not exist
'
git/cmd.py in wait at line 291
git/util.py in finalize_process at line 341
git/repo/base.py in _clone at line 880
git/repo/base.py in clone_from at line 925
git/objects/submodule/base.py in _clone_repo at line 261
git/objects/submodule/base.py in update at line 524
GitPython==2.1.1
Still present in the current revision 8f76463