Set correct object_kind on tag push data.

This commit is contained in:
Douwe Maan 2015-02-28 17:41:01 +01:00
parent d57e809cbd
commit 5c910b94ce
2 changed files with 6 additions and 3 deletions

View file

@ -40,7 +40,9 @@ class CreateTagService < BaseService
end
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, [])
data[:object_kind] = "tag_push"
data
end
end

View file

@ -16,7 +16,8 @@ class GitTagPushService
private
def create_push_data(oldrev, newrev, ref)
Gitlab::PushDataBuilder.
build(project, user, oldrev, newrev, ref, [])
data = Gitlab::PushDataBuilder.build(project, user, oldrev, newrev, ref, [])
data[:object_kind] = "tag_push"
data
end
end