diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-04-02 04:23:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-01 20:23:17 +0000 |
commit | 0db554fa634737af59613768b2e01bfe3e239e68 (patch) | |
tree | b1dbd6cfb4e06ddfd5d32fb4eea227908c26983f /modules/git/commit_reader.go | |
parent | ca297a90fb1fec5b270fad1a3e575916510e7385 (diff) | |
download | gitea-0db554fa634737af59613768b2e01bfe3e239e68.tar.gz gitea-0db554fa634737af59613768b2e01bfe3e239e68.zip |
Refactor commit signature parser (#30228)
To make it more flexible and support SSH signature.
The existing tests are not changed, there are also tests covering
`parseTagRef` which also calls `parsePayloadSignature` now. Add some new
tests to `Test_parseTagData`
Diffstat (limited to 'modules/git/commit_reader.go')
-rw-r--r-- | modules/git/commit_reader.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/git/commit_reader.go b/modules/git/commit_reader.go index 56c41dc473..f1f4a0e588 100644 --- a/modules/git/commit_reader.go +++ b/modules/git/commit_reader.go @@ -99,7 +99,7 @@ readLoop: } } commit.CommitMessage = messageSB.String() - commit.Signature = &CommitGPGSignature{ + commit.Signature = &CommitSignature{ Signature: signatureSB.String(), Payload: payloadSB.String(), } |