Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-12-01 06:16:09 +01:00

Mirror template bug fix

This commit is contained in:
Unknwon 2014-09-25 20:55:14 -04:00
parent 71e4689d11
commit 977779cdcf

View file

@ -96,9 +96,10 @@ func SearchCommits(ctx *middleware.Context) {
commits, err := ctx.Repo.Commit.SearchCommits(keyword) commits, err := ctx.Repo.Commit.SearchCommits(keyword)
if err != nil { if err != nil {
ctx.Handle(500, "repo.SearchCommits(SearchCommits)", err) ctx.Handle(500, "SearchCommits", err)
return return
} }
commits = models.ValidCommitsWithEmails(commits)
ctx.Data["Keyword"] = keyword ctx.Data["Keyword"] = keyword
ctx.Data["Username"] = userName ctx.Data["Username"] = userName