Skip to content
Commit a1fb15b8 authored by Jonathan Maw's avatar Jonathan Maw
Browse files

git.py: Use the configured list of submodules when fetching with aliases

When the source's URL uses an alias (i.e. Source.translate_url()
actually changes the URL), we use the list of submodules defined in the
config as the list of submodules used.
This is because the source would otherwise have to fetch the main repo
to know which submodules it actually has.
This is inconvenient when using mirroring, because when the upstream
repo is unreachable it'll fail when it doesn't have to.

GitMirrors can now be instantiated without having their path and ref
defined, provided the 'parent' mirror is defined. It will retrieve the
path and ref as-needed instead.

If the source's URL does not use an alias, it will behave as normally.
parent b0e564e9
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment