summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-11 09:57:59 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-11 09:57:59 -0700
commitb2f656796179d4ea8ef3295fa4cf2c6780bcd25e (patch)
tree2c62f358361cc99aa7189b90333d7c4df8ee932a /lib
parente349ca1353ac1ab05edd7c7fad4628b2ccf4fd97 (diff)
parentb0c1bc6657032dcb7ef3e1943d003471b09d8b4e (diff)
downloadgitlab-ce-b2f656796179d4ea8ef3295fa4cf2c6780bcd25e.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/push_data_builder.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/push_data_builder.rb b/lib/gitlab/push_data_builder.rb
index 9fb0bf65949..0cc6b0ac694 100644
--- a/lib/gitlab/push_data_builder.rb
+++ b/lib/gitlab/push_data_builder.rb
@@ -58,6 +58,7 @@ module Gitlab
data[:commits] << commit.hook_attrs(project)
end
+ data[:commits] = "" if data[:commits].count == 0
data
end