diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 6e20a7b7f4..9ecc697d27 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -92,7 +92,7 @@ func Diff(ctx *middleware.Context, params martini.Params) { } ctx.Data["IsImageFile"] = isImageFile - ctx.Data["Title"] = commit.Message() + " · " + base.ShortSha(commitId) + ctx.Data["Title"] = commit.Summary() + " · " + base.ShortSha(commitId) ctx.Data["Commit"] = commit ctx.Data["Diff"] = diff ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0 diff --git a/templates/repo/commits.tmpl b/templates/repo/commits.tmpl index b14c6bc8c6..cf665b6b70 100644 --- a/templates/repo/commits.tmpl +++ b/templates/repo/commits.tmpl @@ -33,7 +33,7 @@