Cleanup fetch and mirror methods
In preparation for https://gitlab.com/gitlab-org/gitlab-ce/issues/39252.
CE counterpart: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/15424
Before, we had:
Project#fetch_mirrorRepository#fetch_remoteRepository#fetch_mirrorRepository#fetch_upstreamRepository#fetch_geo_mirrorGitlab::Git::Repository#fetchRepository#set_remote_as_mirrorRepository#set_import_remote_as_mirror
Major changes:
- Added
Repository#fetch_as_mirror, does roughly whatGitlab::Git::Repository#fetch_mirrordid but usingRepository#fetch_remote -
Gitlab::Git::Repository#fetch_mirror: renamed toGitlab::Git::Repository#fetch_as_mirror_without_shellto prevent confusion -
Repository#fetch_geo_mirror: removed, call site now usesRepository#fetch_as_mirror -
Gitlab::Git::Repository#fetch: renamed toGitlab::Git::Repository#fetch_remote_without_shellto prevent confusion -
Repository#set_import_remote_as_mirror: absorbed intoRepository#set_remote_as_mirror
Edited by Douwe Maan