diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-06 10:17:09 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:43:37 +0200 |
commit | a7d2ebe508b6dde3b3ae37c5a54fc78719b199b3 (patch) | |
tree | 9c2be2776b5346597e026ac749cd7527635ce8dc /lib | |
parent | 4f7ba8f2861b39d3a7697eb99e3fbaaf39f32643 (diff) | |
download | gitlab-ce-a7d2ebe508b6dde3b3ae37c5a54fc78719b199b3.tar.gz |
simplify fetching of commit
Diffstat (limited to 'lib')
-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 |