summaryrefslogtreecommitdiffstats
path: root/routers/repo/commit.go
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-11 18:02:48 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-11 18:02:48 -0400
commit963354c5d7e78eb9fed447ab9b9984420573649c (patch)
tree896956c024e2b26f6517ea1a8138d83a7964254f /routers/repo/commit.go
parent17c1bc73833a25a5841bc5ed344f343535bf1afc (diff)
downloadgitea-963354c5d7e78eb9fed447ab9b9984420573649c.tar.gz
gitea-963354c5d7e78eb9fed447ab9b9984420573649c.zip
Add raw, history file button, and other mirror fixes
Diffstat (limited to 'routers/repo/commit.go')
-rw-r--r--routers/repo/commit.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index 4c5bcf0cbd..b2c2e0f9ac 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -276,13 +276,15 @@ func FileHistory(ctx *middleware.Context) {
nextPage = 0
}
- ctx.Data["Commits"], err = ctx.Repo.GitRepo.CommitsByFileAndRange(
+ commits, err := ctx.Repo.GitRepo.CommitsByFileAndRange(
branchName, fileName, page)
if err != nil {
ctx.Handle(500, "repo.FileHistory(CommitsByRange)", err)
return
}
+ commits = models.ValidateCommitsWithEmails(commits)
+ ctx.Data["Commits"] = commits
ctx.Data["Username"] = userName
ctx.Data["Reponame"] = repoName
ctx.Data["FileName"] = fileName