Skip to content

fix updating submodules with relative urls - #2051

Merged
Byron merged 1 commit into
gitpython-developers:mainfrom
david0:fix-issue-730-relative-submodule
Jun 11, 2025
Merged

fix updating submodules with relative urls#2051
Byron merged 1 commit into
gitpython-developers:mainfrom
david0:fix-issue-730-relative-submodule

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.

@Byron
Byron merged commit 7677c05 into gitpython-developers:main Jun 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants