From: Benson Muite Date: Fri, 05 Jun 2026 04:37:10 GMT Subject: Re: Mirror repositories for submodules Message-ID: <87se71r4ax.fsf@emailplus.org> In-Reply-To: Junio C Hamano writes: > Benson Muite 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.