◐ Shell
clean mode source ↗

fix updating submodules with relative urls by david0 · Pull Request #2051 · gitpython-developers/GitPython

Skip to content

Navigation Menu

Sign in

Appearance settings

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

Conversation

@david0

@david0 david0 commented

Jun 11, 2025

Copy link Copy Markdown

Contributor

This fixes running repo.update_submodules(init=True) on repositories that are using relative for the modules.

It tries to emulate the git behavior: https://github.com/git/git/blob/master/builtin/submodule--helper.c#L503

Fixes #730

This fixes running repo.update_submodules(init=True) on repositories
that are using relative for the modules.

Fixes gitpython-developers#730

@david0 david0 force-pushed the fix-issue-730-relative-submodule branch from 76f3bf3 to 1d80891 Compare

June 11, 2025 12:14

@Byron Byron left a comment

Copy link Copy Markdown

Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

Even though I cannot truly say I know this is correct, there is a test that would probably fail with an exception without the fix so it's better than before.

david0 reacted with thumbs up emoji

@Byron Byron merged commit 7677c05 into gitpython-developers:main

Jun 11, 2025

27 checks passed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Byron Byron Byron approved these changes

Assignees

No one assigned

Labels

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Submodule from relative URL

2 participants

@david0 @Byron