aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorKristian Antonsen <kristian@derfor.dk>2020-07-08 15:53:09 +0200
committerGitHub <noreply@github.com>2020-07-08 14:53:09 +0100
commitcedbd3684fe76875c9ce3b2c12471db63a11f421 (patch)
tree1b518dedaf573e6a7e8378bc3ac7ff0f03a6a535 /routers
parentdbd5e4bb8d0f9d35e19549ecf0c9d8a1d5df167f (diff)
downloadgitea-cedbd3684fe76875c9ce3b2c12471db63a11f421.tar.gz
gitea-cedbd3684fe76875c9ce3b2c12471db63a11f421.zip
Fix regression: Gitea commits API again returns commit summaries, not full messages (#12186)
Closes #12185
Diffstat (limited to 'routers')
-rw-r--r--routers/api/v1/repo/commits.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/api/v1/repo/commits.go b/routers/api/v1/repo/commits.go
index bdfd2bbad6..d383cd500f 100644
--- a/routers/api/v1/repo/commits.go
+++ b/routers/api/v1/repo/commits.go
@@ -298,7 +298,7 @@ func toCommit(ctx *context.APIContext, repo *models.Repository, commit *git.Comm
},
Date: commit.Committer.When.Format(time.RFC3339),
},
- Message: commit.Summary(),
+ Message: commit.Message(),
Tree: &api.CommitMeta{
URL: repo.APIURL() + "/git/trees/" + commit.ID.String(),
SHA: commit.ID.String(),