diff options
author | Alexis Reigel <mail@koffeinfrei.org> | 2017-06-16 14:43:01 +0200 |
---|---|---|
committer | Alexis Reigel <mail@koffeinfrei.org> | 2017-07-27 15:42:53 +0200 |
commit | 028ecb081b7ed71d5123ded535d5b7f87db7cc67 (patch) | |
tree | f2ecccb9572c9e607be318beaa5965817f7ded23 /lib | |
parent | d7f42643681ad1cc634a502ef25acab6b111c6e5 (diff) | |
download | gitlab-ce-028ecb081b7ed71d5123ded535d5b7f87db7cc67.tar.gz |
need to wrap the raw commit in a commit model
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/gpg/invalid_gpg_signature_updater.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/gpg/invalid_gpg_signature_updater.rb b/lib/gitlab/gpg/invalid_gpg_signature_updater.rb index 6511a8f8285..06e4823de32 100644 --- a/lib/gitlab/gpg/invalid_gpg_signature_updater.rb +++ b/lib/gitlab/gpg/invalid_gpg_signature_updater.rb @@ -10,7 +10,8 @@ module Gitlab .where(valid_signature: false) .where(gpg_key_primary_keyid: @gpg_key.primary_keyid) .find_each do |gpg_signature| - commit = Gitlab::Git::Commit.find(gpg_signature.project.repository, gpg_signature.commit_sha) + 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) end end |