diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-08-24 15:21:38 +0300 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-09-05 13:18:31 +0300 |
commit | 2a89037b63967aac0725cf4e122cecbe0c3c5596 (patch) | |
tree | de59a3c5f5998aa3e5042148abe423f59ceca1f2 /lib/gitlab | |
parent | c5e0bd56fbc0f13e107e6553ea817c130d947ab1 (diff) |
downcase gpg key's emails
this is necessary for email comparisons
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/gpg.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/gpg.rb b/lib/gitlab/gpg.rb index 45e9f9d65ae..025f826e65f 100644 --- a/lib/gitlab/gpg.rb +++ b/lib/gitlab/gpg.rb @@ -39,7 +39,7 @@ module Gitlab fingerprints = CurrentKeyChain.fingerprints_from_key(key) GPGME::Key.find(:public, fingerprints).flat_map do |raw_key| - raw_key.uids.map { |uid| { name: uid.name, email: uid.email } } + raw_key.uids.map { |uid| { name: uid.name, email: uid.email.downcase } } end end end |