From 678fec3f6a51beee4f9c7580e51a99170ba24568 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 1 Jul 2017 10:05:01 -0500 Subject: [PATCH] upgrade git source code. (#2094) Signed-off-by: Bo-Yi Wu --- vendor/code.gitea.io/git/commit.go | 2 +- vendor/vendor.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/code.gitea.io/git/commit.go b/vendor/code.gitea.io/git/commit.go index 0a95bc90b..b24af93d9 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). diff --git a/vendor/vendor.json b/vendor/vendor.json index 9487cf184..8a3f4b6c0 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -3,10 +3,10 @@ "ignore": "test appengine", "package": [ { - "checksumSHA1": "bjwnhCgzLl8EtrjX+vsz7POSaWw=", + "checksumSHA1": "SOUGuO+W7WWYbek3gLKyp8ZG+L4=", "path": "code.gitea.io/git", - "revision": "7c4fc4e5ca3aab313bbe68b4b19ca253830bc60f", - "revisionTime": "2017-06-28T06:06:37Z" + "revision": "ef3ac5f3ff401e694c7371e393075a7d490e78d2", + "revisionTime": "2017-07-01T13:51:17Z" }, { "checksumSHA1": "nLhT+bLMj8uLICP+EZbrdoQe6mM=",