summaryrefslogtreecommitdiff
path: root/app/workers
diff options
context:
space:
mode:
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/