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_mirror
Repository#fetch_remote
Repository#fetch_mirror
Repository#fetch_upstream
Repository#fetch_geo_mirror
Gitlab::Git::Repository#fetch
Repository#set_remote_as_mirror
Repository#set_import_remote_as_mirror
Major changes:
- Added
Repository#fetch_as_mirror
, does roughly whatGitlab::Git::Repository#fetch_mirror
did but usingRepository#fetch_remote
-
Gitlab::Git::Repository#fetch_mirror
: renamed toGitlab::Git::Repository#fetch_as_mirror_without_shell
to 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_shell
to prevent confusion -
Repository#set_import_remote_as_mirror
: absorbed intoRepository#set_remote_as_mirror
Edited by Douwe Maan