diff options
Diffstat (limited to 'routers/repo')
-rw-r--r-- | routers/repo/commit.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/routers/repo/commit.go b/routers/repo/commit.go index 2b6c9cece5..004d4915df 100644 --- a/routers/repo/commit.go +++ b/routers/repo/commit.go @@ -311,6 +311,12 @@ func Diff(ctx *context.Context) { ctx.ServerError("commit.GetBranchName", err) return } + + ctx.Data["TagName"], err = commit.GetTagName() + if err != nil { + ctx.ServerError("commit.GetTagName", err) + return + } ctx.HTML(200, tplCommitPage) } |