forked from forgejo/forgejo
upgrade git source code. (#2094)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
parent
eae9154811
commit
678fec3f6a
2 changed files with 4 additions and 4 deletions
2
vendor/code.gitea.io/git/commit.go
generated
vendored
2
vendor/code.gitea.io/git/commit.go
generated
vendored
|
@ -54,7 +54,7 @@ func (c *Commit) Message() string {
|
|||
|
||||
// Summary returns first line of commit message.
|
||||
func (c *Commit) Summary() string {
|
||||
return strings.Split(c.CommitMessage, "\n")[0]
|
||||
return strings.Split(strings.TrimSpace(c.CommitMessage), "\n")[0]
|
||||
}
|
||||
|
||||
// ParentID returns oid of n-th parent (0-based index).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue