mirror of
https://github.com/go-gitea/gitea.git
synced 2024-05-11 05:55:29 +00:00
GPG commit validation (#1150)
* GPG commit validation * Add translation + some little fix * Move hash calc after retrieving of potential key + missing translation * Add some little test
This commit is contained in:
committed by
Lunny Xiao
parent
9224405155
commit
14fe9010ae
6
vendor/code.gitea.io/git/repo_commit.go
generated
vendored
6
vendor/code.gitea.io/git/repo_commit.go
generated
vendored
@ -78,6 +78,12 @@ l:
|
||||
return nil, err
|
||||
}
|
||||
commit.Committer = sig
|
||||
case "gpgsig":
|
||||
sig, err := newGPGSignatureFromCommitline(data, nextline+spacepos+1)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
commit.Signature = sig
|
||||
}
|
||||
nextline += eol + 1
|
||||
case eol == 0:
|
||||
|
Reference in New Issue
Block a user