1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00
This commit is contained in:
Unknwon
2014-12-16 02:28:57 -05:00
parent 9803c421f5
commit 1a5aa5e0c0
5 changed files with 22 additions and 9 deletions

View File

@@ -154,8 +154,12 @@ func Home(ctx *middleware.Context) {
// Render issue index links.
for _, f := range files {
c := f[1].(*git.Commit)
c.CommitMessage = string(base.RenderIssueIndexPattern([]byte(c.CommitMessage), ctx.Repo.RepoLink))
switch c := f[1].(type) {
case *git.Commit:
c.CommitMessage = string(base.RenderIssueIndexPattern([]byte(c.CommitMessage), ctx.Repo.RepoLink))
case *git.SubModuleFile:
c.CommitMessage = string(base.RenderIssueIndexPattern([]byte(c.CommitMessage), ctx.Repo.RepoLink))
}
}
ctx.Data["Files"] = files