aboutsummaryrefslogtreecommitdiff
path: root/internal/context
diff options
context:
space:
mode:
authorweibaohui <weibaohui@yeah.net>2020-11-24 23:13:40 +0800
committerGitHub <noreply@github.com>2020-11-24 23:13:40 +0800
commitc7f58ca8703fcdd56c2db74361addb8f16d39b0c (patch)
treebd89bb3152688762dc4e1e2418250a6a34d948f6 /internal/context
parentb34d040c784b9a2eabfb192d1432b3f98c0eef02 (diff)
templates: fix typo of BranchCount (#6370)
Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
Diffstat (limited to 'internal/context')
-rw-r--r--internal/context/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/repo.go b/internal/context/repo.go
index b280a37e..7c70f0c1 100644
--- a/internal/context/repo.go
+++ b/internal/context/repo.go
@@ -280,7 +280,7 @@ func RepoAssignment(pages ...bool) macaron.Handler {
return
}
c.Data["Branches"] = branches
- c.Data["BrancheCount"] = len(branches)
+ c.Data["BranchCount"] = len(branches)
// If not branch selected, try default one.
// If default branch doesn't exists, fall back to some other branch.