Selective fetching of refs from remote repositories for mirroring
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Currently, our pull-mirrors fetch everything from the remote repository, then we iterate through all of the tags and branches to see if we need to update a local ref.
But in some cases, we don't need to fetch everything:
- When only mirroring protected branches
- When updating branches for running pipelines for external repositories
We could add a refspec
argument to the FetchRemote
RPC to allow fetching and processing only what we need?
Edited by 🤖 GitLab Bot 🤖