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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-10-30 23:43:27 +0300
committerDouwe Maan <douwe@gitlab.com>2018-10-30 23:43:27 +0300
commit7bcd0dc19bfd31e79d52ae148d3edf15b054cb5a (patch)
treed1f4075d37ac5420233fb68dc5b239b827573791 /lib/gitlab/git/remote_mirror.rb
parent908a19570fe3bba720eecb7463617184230e429f (diff)
parent81f5955eb6677849c15d35b60223312f6a9d77a3 (diff)
Merge branch 'bvl-move-wrapped-gitaly-errors' into 'master'
Move Repository#wrapped_gitaly_errors into concern See merge request gitlab-org/gitlab-ce!22691
Diffstat (limited to 'lib/gitlab/git/remote_mirror.rb')
-rw-r--r--lib/gitlab/git/remote_mirror.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/git/remote_mirror.rb b/lib/gitlab/git/remote_mirror.rb
index e4743b4db0a..7f9520de5ce 100644
--- a/lib/gitlab/git/remote_mirror.rb
+++ b/lib/gitlab/git/remote_mirror.rb
@@ -1,13 +1,15 @@
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: [])
- @repository.wrapped_gitaly_errors do
+ wrapped_gitaly_errors do
@repository.gitaly_remote_client.update_remote_mirror(@ref_name, only_branches_matching)
end
end