summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorRubén Dávila <Ruben@GitLab.com>2015-12-04 16:54:25 -0500
committerRubén Dávila <Ruben@GitLab.com>2015-12-09 11:10:08 -0500
commit7e8fc4822758057ed8a2239659cdd8f49099613d (patch)
tree2ab70f3bb883eb06cb228391c9e4c0b0fbab04df /app/models/commit.rb
parent9bfd6c44e23754b6f699586f6a0cec2879e107e0 (diff)
downloadgitlab-ce-7e8fc4822758057ed8a2239659cdd8f49099613d.tar.gz
Normalize email when looking for GitLab users from commit info. #3854issue_3854
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 8ae5325d16a..fa88a408fa3 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -175,11 +175,11 @@ class Commit
end
def author
- @author ||= User.find_by_any_email(author_email)
+ @author ||= User.find_by_any_email(author_email.downcase)
end
def committer
- @committer ||= User.find_by_any_email(committer_email)
+ @committer ||= User.find_by_any_email(committer_email.downcase)
end
def parents