diff --git a/templates/repo/branch/list.tmpl b/templates/repo/branch/list.tmpl
index 7ddd6f1f7..370e32396 100644
--- a/templates/repo/branch/list.tmpl
+++ b/templates/repo/branch/list.tmpl
@@ -13,7 +13,7 @@
- {{range $branch := .Branches}}
+ {{range .Branches}}
{{if eq .Name $.DefaultBranch}}
{{if .IsProtected}}
@@ -44,7 +44,7 @@
- {{range $branch := .Branches}}
+ {{range .Branches}}
{{if ne .Name $.DefaultBranch}}
| |