debian-mirror-gitlab/lib/gitlab/git/remote_mirror.rb

17 lines
395 B
Ruby
Raw Normal View History

2018-03-17 18:26:18 +05:30
module Gitlab
module Git
class RemoteMirror
def initialize(repository, ref_name)
@repository = repository
@ref_name = ref_name
end
def update(only_branches_matching: [])
2018-11-08 19:23:39 +05:30
@repository.wrapped_gitaly_errors do
@repository.gitaly_remote_client.update_remote_mirror(@ref_name, only_branches_matching)
2018-03-17 18:26:18 +05:30
end
end
end
end
end