Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

submodule update doesn't work with relative submodule paths (in GitPython 2.1.14) #944

Closed
@Genovese-martijn

Description

@Genovese-martijn

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp