diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-09-23 15:30:04 -0400 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-09-23 15:30:04 -0400 |
commit | 5bbeeb0f1b5cecb67e1527410a45fb65df0096d1 (patch) | |
tree | 7c135abd7c84f4e1743ad621265fbaee25bf5f99 /routers | |
parent | 93ee0838eb317ce729391fbfafa0595f561e3f65 (diff) | |
download | gitea-5bbeeb0f1b5cecb67e1527410a45fb65df0096d1.tar.gz gitea-5bbeeb0f1b5cecb67e1527410a45fb65df0096d1.zip |
Page: Commits and fix #249
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/commit.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 218cae7bed..c23fdfe7c6 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -56,12 +56,14 @@ func Commits(ctx *middleware.Context) { } // Both `git log branchName` and `git log commitId` work. - ctx.Data["Commits"], err = ctx.Repo.Commit.CommitsByRange(page) + commits, err := ctx.Repo.Commit.CommitsByRange(page) if err != nil { ctx.Handle(500, "CommitsByRange", err) return } + commits = models.ValidCommitsWithEmails(commits) + ctx.Data["Commits"] = commits ctx.Data["Username"] = userName ctx.Data["Reponame"] = repoName ctx.Data["CommitCount"] = commitsCount |