summaryrefslogtreecommitdiff
path: root/lib/gitlab/git/repository_mirroring.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/git/repository_mirroring.rb')
-rw-r--r--lib/gitlab/git/repository_mirroring.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository_mirroring.rb b/lib/gitlab/git/repository_mirroring.rb
index effb1f0ca19..dc424a433fb 100644
--- a/lib/gitlab/git/repository_mirroring.rb
+++ b/lib/gitlab/git/repository_mirroring.rb
@@ -43,7 +43,7 @@ module Gitlab
branches = []
rugged.references.each("refs/remotes/#{remote_name}/*").map do |ref|
- name = ref.name.sub(/\Arefs\/remotes\/#{remote_name}\//, '')
+ name = ref.name.sub(%r{\Arefs/remotes/#{remote_name}/}, '')
begin
target_commit = Gitlab::Git::Commit.find(self, ref.target)