summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/repo/commit.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go
index c23fdfe7c6..512df2534f 100644
--- a/routers/repo/commit.go
+++ b/routers/repo/commit.go
@@ -96,9 +96,10 @@ func SearchCommits(ctx *middleware.Context) {
commits, err := ctx.Repo.Commit.SearchCommits(keyword)
if err != nil {
- ctx.Handle(500, "repo.SearchCommits(SearchCommits)", err)
+ ctx.Handle(500, "SearchCommits", err)
return
}
+ commits = models.ValidCommitsWithEmails(commits)
ctx.Data["Keyword"] = keyword
ctx.Data["Username"] = userName