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:
authorDouwe Maan <douwe@gitlab.com>2015-03-27 14:16:34 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-02 11:57:01 +0300
commitd9698628d9042e820917e1144535888da147c228 (patch)
tree2e503064c3f84c431d690a1cea2cb5a9607238e2 /app/services/git_push_service.rb
parent403b727138e22ce8ba83332ab03fa21fb7f72a1c (diff)
Add Commit#author and #committer.
Diffstat (limited to 'app/services/git_push_service.rb')
-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