Include encoding in signature payload (#30174)
Fixes #30119 Include the encoding in the signature payload. before  after  (cherry picked from commit b6a3cd4b8dc20ba48d0044a972f6ff0f0de6e49e)
This commit is contained in:
parent
bef622d3e7
commit
6925c0eee4
3 changed files with 75 additions and 0 deletions
|
@ -47,6 +47,12 @@ func convertPGPSignature(c *object.Commit) *ObjectSignature {
|
|||
return nil
|
||||
}
|
||||
|
||||
if c.Encoding != "" && c.Encoding != "UTF-8" {
|
||||
if _, err = fmt.Fprintf(&w, "\nencoding %s\n", c.Encoding); err != nil {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
if _, err = fmt.Fprintf(&w, "\n\n%s", c.Message); err != nil {
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue