8354ae3cef
This change makes closes another migration! And remotes tests around it,
mostly due to stubbing this was needed. Also, these are tested on the
Gitaly side too:
- https://gitlab.com/gitlab-org/gitaly/issues/791
-
6dd74543f6/internal/service/repository/fetch_remote_test.go
Closes https://gitlab.com/gitlab-org/gitaly/issues/789
16 lines
395 B
Ruby
16 lines
395 B
Ruby
module Gitlab
|
|
module Git
|
|
class RemoteMirror
|
|
def initialize(repository, ref_name)
|
|
@repository = repository
|
|
@ref_name = ref_name
|
|
end
|
|
|
|
def update(only_branches_matching: [])
|
|
@repository.wrapped_gitaly_errors do
|
|
@repository.gitaly_remote_client.update_remote_mirror(@ref_name, only_branches_matching)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|