diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-08-15 13:22:55 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-08-16 18:57:50 +0200 |
commit | ba7251fefd92b0ecb6365cfe55510e24c5343ac6 (patch) | |
tree | d572877f0150efa654849b97896ef769aeff6c0b /app/models/gpg_signature.rb | |
parent | 4a2a6d521a260981482ee8e4931ebf06cb4f5b6a (diff) | |
download | gitlab-ce-ba7251fefd92b0ecb6365cfe55510e24c5343ac6.tar.gz |
Only create commit GPG signature when necessarydm-gpg-signature-performance
Diffstat (limited to 'app/models/gpg_signature.rb')
-rw-r--r-- | app/models/gpg_signature.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/gpg_signature.rb b/app/models/gpg_signature.rb index 1ac0e123ff1..50fb35c77ec 100644 --- a/app/models/gpg_signature.rb +++ b/app/models/gpg_signature.rb @@ -18,4 +18,8 @@ class GpgSignature < ActiveRecord::Base def commit project.commit(commit_sha) end + + def gpg_commit + Gitlab::Gpg::Commit.new(project, commit_sha) + end end |