WIP: Resolve "Mirror fallback does not work for git"

Description

This MR adds a test to cover the test case where fetching fails when upstream is absent, and fixes git mirrors failing when fetching in such a way that it also doesn't need to download anything to call get_source_fetchers.

Changes proposed in this merge request:

  • A test covering the failure case when fetching with upstream absent
  • Git source no longer needs to fetch to get_source_fetchers by taking the list of fetchers from the config.
  • Git source falls back to pre-mirroring behaviour (generating list of submodules by fetching the main repo and reading .gitmodules) if the source's URL does not contain an alias.

This merge request, when approved, will close issue/bug: #537 (closed)


Closes #537 (closed)

Edited by Jonathan Maw

Merge request reports

Loading