diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/note_data_builder.rb | 2 | ||||
-rw-r--r-- | lib/gitlab/push_data_builder.rb | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/gitlab/note_data_builder.rb b/lib/gitlab/note_data_builder.rb index 0f2abd1b49c..ea6b0ee796d 100644 --- a/lib/gitlab/note_data_builder.rb +++ b/lib/gitlab/note_data_builder.rb @@ -70,7 +70,7 @@ module Gitlab def build_data_for_commit(project, user, note) # commit_id is the SHA hash commit = project.commit(note.commit_id) - commit.hook_attrs(project) + commit.hook_attrs end end end diff --git a/lib/gitlab/push_data_builder.rb b/lib/gitlab/push_data_builder.rb index f8da452e4c0..f44eb872122 100644 --- a/lib/gitlab/push_data_builder.rb +++ b/lib/gitlab/push_data_builder.rb @@ -30,8 +30,7 @@ module Gitlab # For performance purposes maximum 20 latest commits # will be passed as post receive hook data. - commit_attrs = commits_limited.map do |commit| - commit.hook_attrs(project) + commit_attrs = commits_limited.map(&:hook_attrs) end type = Gitlab::Git.tag_ref?(ref) ? "tag_push" : "push" |