diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-21 15:15:49 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-24 12:29:36 +0200 |
commit | 27af24c1c951385bccd298c98044d57ff22ccd1c (patch) | |
tree | 32ffe57d8e73e21df946da1fff6861d0eda5c77e /lib | |
parent | 8ed7ac9d443563a62a6aa03a2ec72b9fcb0d2df1 (diff) | |
download | gitlab-ce-27af24c1c951385bccd298c98044d57ff22ccd1c.tar.gz |
No longer needed to pass project argument to commit methods.
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" |