Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Zaitsev <kirik910@gmail.com>2014-09-15 11:10:35 +0400
committerKirill Zaitsev <kirik910@gmail.com>2014-10-02 12:58:02 +0400
commit1c9d2e39c1aef8e10ebff6e57c174c197a3a1c93 (patch)
tree15d71443e6cf169c2f50d1f4798634ca8cb318c0 /app/services/git_push_service.rb
parente2073f286e1eceb961795af5ea88a39b440e49ac (diff)
Hook attributes
Diffstat (limited to 'app/services/git_push_service.rb')
-rw-r--r--app/services/git_push_service.rb11
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