aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-10 21:40:51 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-10 21:40:51 -0400
commitb2632dec099cb2727933149d2d59cc5e46baa15f (patch)
tree0339b98dcd6a38bf9a02e3681d4e22a024ceaa9f /routers
parent54930c001df8316d8dfda450b5c39379df2cc1b1 (diff)
downloadgitea-b2632dec099cb2727933149d2d59cc5e46baa15f.tar.gz
gitea-b2632dec099cb2727933149d2d59cc5e46baa15f.zip
Page: Compare 2 commits
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/commit.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 9791cc5511..4c5bcf0cbd 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -159,6 +159,7 @@ func Diff(ctx *middleware.Context) {
ctx.Data["IsImageFile"] = isImageFile
ctx.Data["Title"] = commit.Summary() + " ยท " + base.ShortSha(commitId)
ctx.Data["Commit"] = commit
+ ctx.Data["Author"] = models.ValidateCommitWithEmail(commit)
ctx.Data["Diff"] = diff
ctx.Data["Parents"] = parents
ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0
@@ -212,6 +213,7 @@ func CompareDiff(ctx *middleware.Context) {
ctx.Handle(500, "CommitsBeforeUntil", err)
return
}
+ commits = models.ValidateCommitsWithEmails(commits)
ctx.Data["Commits"] = commits
ctx.Data["CommitCount"] = commits.Len()