templates: fix typo of BranchCount (#6370)

Co-authored-by: ᴜɴᴋɴᴡᴏɴ <u@gogs.io>
This commit is contained in:
weibaohui
2020-11-24 23:13:40 +08:00
committed by GitHub
parent b34d040c78
commit c7f58ca870
4 changed files with 6 additions and 5 deletions

View File

@@ -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.