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:
authorElan Ruusamäe <glen@delfi.ee>2016-11-02 01:32:20 +0300
committerElan Ruusamäe <glen@delfi.ee>2016-11-04 16:44:57 +0300
commit31704680cc967f0a053edc70db828ff780d7d0e4 (patch)
treee22fd06d9d846e13a90164a5bd6dde67a2838532 /lib/gitlab/identifier.rb
parente4c05de75ccec1b0d64a7a994f05d54bffc903e5 (diff)
post_receive: accept any user email from last commit
Diffstat (limited to 'lib/gitlab/identifier.rb')
-rw-r--r--lib/gitlab/identifier.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/identifier.rb b/lib/gitlab/identifier.rb
index f8809db21aa..c5acf18beb5 100644
--- a/lib/gitlab/identifier.rb
+++ b/lib/gitlab/identifier.rb
@@ -24,7 +24,7 @@ module Gitlab
email = commit.author_email
identify_with_cache(:email, email) do
- User.find_by(email: email)
+ User.find_by_any_email(email)
end
end