diff --git a/modules/context/repo.go b/modules/context/repo.go index 217cbd3dfca3..6b535d0564bc 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -986,6 +986,7 @@ func RepoRefByType(refType RepoRefType, ignoreNotExistErr ...bool) func(*Context } ctx.Data["BranchName"] = ctx.Repo.BranchName + ctx.Data["RefName"] = ctx.Repo.RefName ctx.Data["BranchNameSubURL"] = ctx.Repo.BranchNameSubURL() ctx.Data["TagName"] = ctx.Repo.TagName ctx.Data["CommitID"] = ctx.Repo.CommitID diff --git a/templates/repo/home.tmpl b/templates/repo/home.tmpl index 2ccbcef00776..bd1b8a629594 100644 --- a/templates/repo/home.tmpl +++ b/templates/repo/home.tmpl @@ -122,9 +122,9 @@ {{svg "octicon-download"}}