mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 15:54:13 +00:00
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`
This commit is contained in:
1 parent
ca297a90fb
commit
0db554fa63
7 files changed
+135
-99
No files matched your search
@@ -99,7 +99,7 @@ readLoop:
|
||||
}
|
||||
}
|
||||
commit.CommitMessage = messageSB.String()
|
||||
commit.Signature = &CommitGPGSignature{
|
||||
commit.Signature = &CommitSignature{
|
||||
Signature: signatureSB.String(),
|
||||
Payload: payloadSB.String(),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user