Welcome to mirror list, hosted at ThFree Co, Russian Federation.

remote_mirror.rb « git « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4743b4db0a1ab3b0671d6bdc371c950077ebb9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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