diff options
author | Bo-Yi Wu <appleboy.tw@gmail.com> | 2017-07-01 10:05:01 -0500 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-07-01 23:05:01 +0800 |
commit | 678fec3f6a51beee4f9c7580e51a99170ba24568 (patch) | |
tree | 5a8f8977837d1a701ce7003a0b267f46b9b709b7 /vendor/code.gitea.io | |
parent | eae9154811b660bcf2333f349176af7ed96b5924 (diff) | |
download | gitea-678fec3f6a51beee4f9c7580e51a99170ba24568.tar.gz gitea-678fec3f6a51beee4f9c7580e51a99170ba24568.zip |
upgrade git source code. (#2094)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Diffstat (limited to 'vendor/code.gitea.io')
-rw-r--r-- | vendor/code.gitea.io/git/commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/code.gitea.io/git/commit.go b/vendor/code.gitea.io/git/commit.go index 0a95bc90b7..b24af93d9a 100644 --- a/vendor/code.gitea.io/git/commit.go +++ b/vendor/code.gitea.io/git/commit.go @@ -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). |