Normalize email when looking for GitLab users from commit info. #3854

This commit is contained in:
Rubén Dávila 2015-12-04 16:54:25 -05:00
parent 9bfd6c44e2
commit 7e8fc48227
1 changed files with 2 additions and 2 deletions

View File

@ -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