Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-13 16:51:48 +0300
committerDouwe Maan <douwe@gitlab.com>2015-03-13 16:51:48 +0300
commit4e49f21b141e8cbbf581c119c7524f6e9553f136 (patch)
treeefdf332bc2e1ed810404588d4839d4cfe7e09e85 /lib
parent606d24ff2df157ec70003132d1ead7a47dc32883 (diff)
Set push data object kind in PushDataBuilder.
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/push_data_builder.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/push_data_builder.rb b/lib/gitlab/push_data_builder.rb
index 0cc6b0ac694..ea9012b8844 100644
--- a/lib/gitlab/push_data_builder.rb
+++ b/lib/gitlab/push_data_builder.rb
@@ -28,9 +28,10 @@ module Gitlab
# Get latest 20 commits ASC
commits_limited = commits.last(20)
+ type = Gitlab::Git.tag_ref?(ref) ? "tag_push" : "push"
# Hash to be passed as post_receive_data
data = {
- object_kind: "push",
+ object_kind: type,
before: oldrev,
after: newrev,
ref: ref,