summaryrefslogtreecommitdiff
path: root/app/models/gpg_signature.rb
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-08-24 14:21:26 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2017-09-05 12:18:31 +0200
commit508ff17b3405a4e2275fa137bd7322b728db8ed4 (patch)
tree7e00cb57f432d92b4a6af349678efe54bb2546cb /app/models/gpg_signature.rb
parentff413ec28d5f0721646cea223fb5e5a054bde31e (diff)
downloadgitlab-ce-508ff17b3405a4e2275fa137bd7322b728db8ed4.tar.gz
pass whole commit to Gitlab::Gpg::Commit again
we need the commit object for the updated verification that also checks the committer's email to match the gpg key and user's emails.
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r--app/models/gpg_signature.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/gpg_signature.rb b/app/models/gpg_signature.rb
index 50fb35c77ec..6680bc4da0b 100644
--- a/app/models/gpg_signature.rb
+++ b/app/models/gpg_signature.rb
@@ -20,6 +20,6 @@ class GpgSignature < ActiveRecord::Base
end
def gpg_commit
- Gitlab::Gpg::Commit.new(project, commit_sha)
+ Gitlab::Gpg::Commit.new(commit)
end
end