Skip to content
Snippets Groups Projects

feat: x509 signed commits using openssl

Merged Roger Meier requested to merge siemens/gitlab:feat/x509-signed-commits into master
Compare and Show latest version
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -122,8 +122,10 @@ def initialize(raw_commit, project)
@project = project
if project
raw_repo = self.project.repository&.raw_repository
@signature_data = Gitlab::Git::Commit.extract_signature_lazily(raw_repo, self.sha || self.id) if raw_repo
if project.repository
@signature_data = Gitlab::Git::Commit.extract_signature_lazily(project.repository.raw_repository, sha || id)
end
@gpg_commit = Gitlab::Gpg::Commit.new(self)
@x509_commit = Gitlab::X509::Commit.new(self)
end
Loading