summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 10:06:31 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-03 10:06:31 +0300
commit413a310faa17f626f351fa3afd6423e8782935a9 (patch)
tree290a418a9750d66fd43282b0a51157abb4eef7a2 /app/workers
parent7e8bf92bd77f5a63802c87bfbb6282a17a43c691 (diff)
downloadgitlab-ce-413a310faa17f626f351fa3afd6423e8782935a9.tar.gz
fixed blame and mr factory
Diffstat (limited to 'app/workers')
-rw-r--r--app/workers/post_receive.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/post_receive.rb b/app/workers/post_receive.rb
index 72cef0fd295..132f1a6d7e9 100644
--- a/app/workers/post_receive.rb
+++ b/app/workers/post_receive.rb
@@ -23,7 +23,7 @@ class PostReceive
user = if identifier.blank?
# Local push from gitlab
- email = project.repository.commit(newrev).author.email rescue nil
+ email = project.repository.commit(newrev).author_email rescue nil
User.find_by_email(email) if email
elsif identifier =~ /\Auser-\d+\Z/