diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-09 21:27:47 +0000 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-12-09 21:27:47 +0000 |
commit | 57f7a4db63ccddfb8a684af43876267859f7ff0e (patch) | |
tree | af14610743340b9c2c1c3ee9c6dc38005430ba39 | |
parent | d7044c5ccf4df625bf90cca9b5197ffe9da99076 (diff) | |
parent | 7e8fc4822758057ed8a2239659cdd8f49099613d (diff) | |
download | gitlab-ce-57f7a4db63ccddfb8a684af43876267859f7ff0e.tar.gz |
Merge branch 'issue_3854' into 'master'
Downcase commit author email for matching with users
Closes #3854
See merge request !1992
-rw-r--r-- | app/models/commit.rb | 4 |
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 |