diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-12-07 15:11:15 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-12-07 15:14:35 +0300 |
commit | 5df2c4419c5019b5003ddfa6adb59c84c3d9910c (patch) | |
tree | 12cdcec680fb9d97431ca14d9edd138aa7627f03 /lib | |
parent | 5c1b49f494f07bf37ba3c60f3b9f70d1842d8b60 (diff) |
fox specs
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/push_data_builder.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/gitlab/push_data_builder.rb b/lib/gitlab/push_data_builder.rb index cdcdb02a052..5842b740e8e 100644 --- a/lib/gitlab/push_data_builder.rb +++ b/lib/gitlab/push_data_builder.rb @@ -30,7 +30,9 @@ module Gitlab # For performance purposes maximum 20 latest commits # will be passed as post receive hook data. - commit_attrs = commits_limited.map(&:hook_attrs) + commit_attrs = commits_limited.map do |commit| + commit.hook_attrs(true) + end type = Gitlab::Git.tag_ref?(ref) ? "tag_push" : "push" |