fix #741
This commit is contained in:
parent
9803c421f5
commit
1a5aa5e0c0
5 changed files with 22 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue