diff options
author | Stan Hu <stanhu@gmail.com> | 2019-02-15 16:58:23 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2019-02-15 16:58:23 +0300 |
commit | 886f00bcba23d67e2c86591c2eb5359ef457a2f9 (patch) | |
tree | 0ee446afb776d14433abd83b8e366517a976d867 /app/models/commit_collection.rb | |
parent | d9328cb3e3c4e71b02e2a1ceb304997ddebd6fdd (diff) |
Backport commit author changes from CE
This backports the changes made in EE to fix merge request approvers
from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9574.
Diffstat (limited to 'app/models/commit_collection.rb')
-rw-r--r-- | app/models/commit_collection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/commit_collection.rb b/app/models/commit_collection.rb index 42ec5b5e664..a9a2e9c81eb 100644 --- a/app/models/commit_collection.rb +++ b/app/models/commit_collection.rb @@ -20,8 +20,8 @@ class CommitCollection commits.each(&block) end - def committers - emails = without_merge_commits.map(&:committer_email).uniq + def authors + emails = without_merge_commits.map(&:author_email).uniq User.by_any_email(emails) end |