From 977779cdcf893b2a6e148c1d4772efccef2dbe03 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 25 Sep 2014 20:55:14 -0400 Subject: [PATCH] Mirror template bug fix --- routers/repo/commit.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/routers/repo/commit.go b/routers/repo/commit.go index c23fdfe7..512df253 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