diff options
author | Kirill Zaitsev <kirik910@gmail.com> | 2014-09-15 11:10:35 +0400 |
---|---|---|
committer | Kirill Zaitsev <kirik910@gmail.com> | 2014-10-02 12:58:02 +0400 |
commit | 1c9d2e39c1aef8e10ebff6e57c174c197a3a1c93 (patch) | |
tree | 15d71443e6cf169c2f50d1f4798634ca8cb318c0 /app/services/git_push_service.rb | |
parent | e2073f286e1eceb961795af5ea88a39b440e49ac (diff) |
Hook attributes
Diffstat (limited to 'app/services/git_push_service.rb')
-rw-r--r-- | app/services/git_push_service.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index 17c84c78d2d..b2d20491392 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -150,16 +150,7 @@ class GitPushService # will be passed as post receive hook data. # push_commits_limited.each do |commit| - data[:commits] << { - id: commit.id, - message: commit.safe_message, - timestamp: commit.committed_date.xmlschema, - url: "#{Gitlab.config.gitlab.url}/#{project.path_with_namespace}/commit/#{commit.id}", - author: { - name: commit.author_name, - email: commit.author_email - } - } + data[:commits] << commit.hook_attrs(project) end data |