diff options
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/gpg/invalid_gpg_signature_updater.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/gitlab/gpg/invalid_gpg_signature_updater.rb b/lib/gitlab/gpg/invalid_gpg_signature_updater.rb index 06e4823de32..860e1e1035c 100644 --- a/lib/gitlab/gpg/invalid_gpg_signature_updater.rb +++ b/lib/gitlab/gpg/invalid_gpg_signature_updater.rb @@ -10,9 +10,7 @@ module Gitlab .where(valid_signature: false) .where(gpg_key_primary_keyid: @gpg_key.primary_keyid) .find_each do |gpg_signature| - raw_commit = Gitlab::Git::Commit.find(gpg_signature.project.repository, gpg_signature.commit_sha) - commit = ::Commit.new(raw_commit, gpg_signature.project) - Gitlab::Gpg::Commit.new(commit).update_signature!(gpg_signature) + Gitlab::Gpg::Commit.new(gpg_signature.commit).update_signature!(gpg_signature) end end end |