1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Added issue link rendering in commit messages

This commit is contained in:
dennis-smurf
2014-12-05 11:02:52 +01:00
parent e577f2fff3
commit 528c075ad6
5 changed files with 26 additions and 6 deletions

View File

@@ -199,6 +199,7 @@ func Home(ctx *middleware.Context) {
}
lastCommit := ctx.Repo.Commit
lastCommit.CommitMessage = string(base.RenderissueIndexPattern([]byte(lastCommit.CommitMessage), ctx.Repo.RepoLink))
if len(treePath) > 0 {
c, err := ctx.Repo.Commit.GetCommitOfRelPath(treePath)
if err != nil {