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.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/git/repository_mirroring.rb b/lib/gitlab/git/repository_mirroring.rb
index 8a01f92e2af..e35ea5762eb 100644
--- a/lib/gitlab/git/repository_mirroring.rb
+++ b/lib/gitlab/git/repository_mirroring.rb
@@ -35,7 +35,11 @@ module Gitlab
next if name =~ /\^\{\}\Z/
target_commit = Gitlab::Git::Commit.find(self, target)
- Gitlab::Git::Tag.new(self, name, target, target_commit)
+ Gitlab::Git::Tag.new(self, {
+ name: name,
+ target: target,
+ target_commit: target_commit
+ })
end.compact
end