mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 17:20:53 +02:00
fix: Invalid UTF-8 commit messages in JSON API responses (#37542)
This commit is contained in:
1 parent
2200ed7499
commit
c9b9e376fb
54 files changed
+221
-215
No files matched your search
@@ -36,7 +36,7 @@ func TestAddDeletedBranch(t *testing.T) {
|
||||
|
||||
commit := &git.Commit{
|
||||
ID: git.MustIDFromString(secondBranch.CommitID),
|
||||
CommitMessage: secondBranch.CommitMessage,
|
||||
CommitMessage: git.CommitMessage{MessageRaw: secondBranch.CommitMessage},
|
||||
Committer: &git.Signature{
|
||||
When: secondBranch.CommitTime.AsLocalTime(),
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user