Commit 5c910b94 authored by Douwe Maan's avatar Douwe Maan

Set correct object_kind on tag push data.

parent d57e809c
...@@ -40,7 +40,9 @@ class CreateTagService < BaseService ...@@ -40,7 +40,9 @@ class CreateTagService < BaseService
end end
def create_push_data(project, user, tag) def create_push_data(project, user, tag)
Gitlab::PushDataBuilder. data = Gitlab::PushDataBuilder.
build(project, user, Gitlab::Git::BLANK_SHA, tag.target, 'refs/tags/' + tag.name, []) build(project, user, Gitlab::Git::BLANK_SHA, tag.target, 'refs/tags/' + tag.name, [])
data[:object_kind] = "tag_push"
data
end end
end end
...@@ -16,7 +16,8 @@ class GitTagPushService ...@@ -16,7 +16,8 @@ class GitTagPushService
private private
def create_push_data(oldrev, newrev, ref) def create_push_data(oldrev, newrev, ref)
Gitlab::PushDataBuilder. data = Gitlab::PushDataBuilder.build(project, user, oldrev, newrev, ref, [])
build(project, user, oldrev, newrev, ref, []) data[:object_kind] = "tag_push"
data
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment