summaryrefslogtreecommitdiffstats
path: root/modules/context/repo.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-08-26 21:07:06 +0800
committerGitHub <noreply@github.com>2022-08-26 15:07:06 +0200
commitb0c62846f10dfe91481371d3d7e1860d292d1058 (patch)
treefb6e61d9a6b9d53312fc9bfae2a1fb68c963fb70 /modules/context/repo.go
parent6c4688e1b1ddb68de192af7f83b06de27baae85e (diff)
downloadgitea-b0c62846f10dfe91481371d3d7e1860d292d1058.tar.gz
gitea-b0c62846f10dfe91481371d3d7e1860d292d1058.zip
Fix download archiver of a commit (#20962)
Diffstat (limited to 'modules/context/repo.go')
-rw-r--r--modules/context/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go
index 1e0f6461a2..5404acc05a 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -987,6 +987,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