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
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-10 00:27:47 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-12-10 00:27:47 +0300
commit57f7a4db63ccddfb8a684af43876267859f7ff0e (patch)
treeaf14610743340b9c2c1c3ee9c6dc38005430ba39 /app
parentd7044c5ccf4df625bf90cca9b5197ffe9da99076 (diff)
parent7e8fc4822758057ed8a2239659cdd8f49099613d (diff)
Merge branch 'issue_3854' into 'master'
Downcase commit author email for matching with users Closes #3854 See merge request !1992
Diffstat (limited to 'app')
-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