Set correct object_kind on tag push data.
This commit is contained in:
parent
d57e809cbd
commit
5c910b94ce
2 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue