Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork960
Closed
Labels
Description
When using the git.objects.submodules.base.Submodule.update method (https://gitpython.readthedocs.io/en/stable/reference.html#git.objects.submodule.base.Submodule.update), the git python module seems to fake agit submodule
call withgit clone
. It executesgit clone -n --separate-git-dir=<workspace>/.git/modules/<submodule_path> -v <submodule_url> <workspace>/<submodule_path>
. This command doesn't work when a submodule is specified as a relative path in the.gitmodules
path. For example:
[submodule "main_project/submodule"] path = main_project/submodule url = ../../other_project/some_module.git
Thegit.objects.submodules.base.Submodule.update
then fails with `repository '../../other_project/some_module.git' does not exist.
The regulargit submodule
command is able to resolve the paths.