Re: Mirror repositories for submodules
- From
- Benson Muite <benson_muite@emailplus.org>
- Date
- Jun 5, 2026, 04:37 UTC
- Message-ID
- <87se71r4ax.fsf@emailplus.org>
- In-Reply-To
- <xmqqcxy7qfgk.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> writes:
Show 20 quoted lines
> Benson Muite <benson_muite@emailplus.org> writes: > >> Would a contribution to add mirror repositories as alternate submodule >> sources be considered for inclusion? Some projects have mirror >> repositories on other hosting services, and may have bandwidth limits on >> their primary hosting service. Being able to indicate mirror >> repositories for where to check for updates and sources for submodules >> when doing `git clone --recurse-submodules https://my.repo ` or `git >> submodule update --init --recursive` would be helpful when there is a >> timeout. > > I do not see why such a "oh, the repository at $URL1 seems to be > down, but we know $URL2 serves the equivalent information, so let's > go there instead" feature has to be limited to submodule use case. > > So, no, I do not think a contribution to add mirror repositories as > alternate submodule sources should be considered for inclusion, as > it artificially limits usefulness of the feature. A feature to add > mirror repositories as alternate sources might be worth considering, > though.
Thanks for the feedback. This was motivated by problems when trying to recursively clone, but a more general solution is also fine.