summaryrefslogtreecommitdiff
path: root/app/services
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-03-27 12:16:34 +0100
committerDouwe Maan <douwe@gitlab.com>2015-04-02 10:57:01 +0200
commitd9698628d9042e820917e1144535888da147c228 (patch)
tree2e503064c3f84c431d690a1cea2cb5a9607238e2 /app/services
parent403b727138e22ce8ba83332ab03fa21fb7f72a1c (diff)
downloadgitlab-ce-d9698628d9042e820917e1144535888da147c228.tar.gz
Add Commit#author and #committer.
Diffstat (limited to 'app/services')
-rw-r--r--app/services/git_push_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb
index 1f0b29dff5e..bb066e39f6b 100644
--- a/app/services/git_push_service.rb
+++ b/app/services/git_push_service.rb
@@ -127,6 +127,6 @@ class GitPushService
end
def commit_user(commit)
- User.find_for_commit(commit.author_email, commit.author_name) || user
+ commit.author || user
end
end