-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Refactor commit reader #34542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor commit reader #34542
Conversation
1d6f91c
to
1f43769
Compare
I just want to highlight that Git solves this by 'cutting' out the signature, leaving only the parts of the commits that should be signed, independently of possibly unknown header fields. https://github.com/git/git/blob/cb96e1697ad6e54d11fc920c95f82977f8e438f8/commit.c#L1170-L1213 This also makes the approach more resilient against unconventionally formatted commits, I believe. |
That's what I do in this PR |
Backport #34542 by wxiaoguang Co-authored-by: wxiaoguang <[email protected]>
* giteaofficial/main: Refactor some tests (go-gitea#34580) Do not mutate incoming options to SearchRepositoryByName (go-gitea#34553) Fix/improve avatar sync from LDAP (go-gitea#34573) Fix some trivial problems (go-gitea#34579) Retain issue sort type when a keyword search is introduced (go-gitea#34559) Always use an empty line to separate the commit message and trailer (go-gitea#34512) Fix line-button issue after file selection in file tree (go-gitea#34574) [skip ci] Updated translations via Crowdin Fix doctor deleting orphaned issues attachments (go-gitea#34142) [skip ci] Updated translations via Crowdin Fix actions skipped commit status indicator (go-gitea#34507) Clean up "file-view" related styles (go-gitea#34558) Add "View workflow file" to Actions list page (go-gitea#34538) Do not mutate incoming options to RenderUserSearch and SearchUsers (go-gitea#34544) Add webhook assigning test and fix possible bug (go-gitea#34420) Fix possible nil description of pull request when migrating from CodeCommit (go-gitea#34541) Refactor commit reader (go-gitea#34542)
No description provided.