18 lines
429 B
Ruby
18 lines
429 B
Ruby
module Gitlab
|
|
module Git
|
|
class RemoteMirror
|
|
include Gitlab::Git::WrapsGitalyErrors
|
|
|
|
def initialize(repository, ref_name)
|
|
@repository = repository
|
|
@ref_name = ref_name
|
|
end
|
|
|
|
def update(only_branches_matching: [])
|
|
wrapped_gitaly_errors do
|
|
@repository.gitaly_remote_client.update_remote_mirror(@ref_name, only_branches_matching)
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|