diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-28 17:41:01 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-03-03 11:14:33 +0100 |
commit | 5c910b94cef084fc1fae398fdf72a220f800e7ad (patch) | |
tree | 2b549edccbe6e6261ef5fe87974aa475a3a7e581 /app/services | |
parent | d57e809cbd56aea8a49c6595663fc4b7250c5a34 (diff) | |
download | gitlab-ce-5c910b94cef084fc1fae398fdf72a220f800e7ad.tar.gz |
Set correct object_kind on tag push data.
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/create_tag_service.rb | 4 | ||||
-rw-r--r-- | app/services/git_tag_push_service.rb | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app/services/create_tag_service.rb b/app/services/create_tag_service.rb index 850077006ea..8cd65724cb9 100644 --- a/app/services/create_tag_service.rb +++ b/app/services/create_tag_service.rb @@ -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 diff --git a/app/services/git_tag_push_service.rb b/app/services/git_tag_push_service.rb index 725ef01ff23..cd92f50b02a 100644 --- a/app/services/git_tag_push_service.rb +++ b/app/services/git_tag_push_service.rb @@ -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 |