diff options
Diffstat (limited to 'lib/gitlab/note_data_builder.rb')
-rw-r--r-- | lib/gitlab/note_data_builder.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/note_data_builder.rb b/lib/gitlab/note_data_builder.rb index 644dec45dca..ea6b0ee796d 100644 --- a/lib/gitlab/note_data_builder.rb +++ b/lib/gitlab/note_data_builder.rb @@ -69,8 +69,8 @@ module Gitlab def build_data_for_commit(project, user, note) # commit_id is the SHA hash - commit = project.repository.commit(note.commit_id) - commit.hook_attrs(project) + commit = project.commit(note.commit_id) + commit.hook_attrs end end end |