summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2017-08-16 18:34:55 +0000
committerRobert Speicher <robert@gitlab.com>2017-08-16 18:34:55 +0000
commitec34b2d051c16a351387fbaedb5542654810b8a5 (patch)
treee08e965390b86e187321d83957c99a45190a698a /app/models/commit.rb
parent72d5165bd57472692c77d6a9d159e65058513bf3 (diff)
parentba7251fefd92b0ecb6365cfe55510e24c5343ac6 (diff)
downloadgitlab-ce-ec34b2d051c16a351387fbaedb5542654810b8a5.tar.gz
Merge branch 'dm-gpg-signature-performance' into 'master'
Only create commit GPG signature when necessary See merge request !13561
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 5ca2f150247..d41c88b4e30 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -383,6 +383,6 @@ class Commit
end
def gpg_commit
- @gpg_commit ||= Gitlab::Gpg::Commit.new(self)
+ @gpg_commit ||= Gitlab::Gpg::Commit.for_commit(self)
end
end