From 3c3f7c2a56ba18d7210cc40e33e64da5219ef990 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 20 Nov 2014 18:03:42 -0500 Subject: [PATCH] Fix #643 --- modules/middleware/repo.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 0aae122d..7cc7a6d8 100644 --- a/modules/middleware/repo.go +++ b/modules/middleware/repo.go @@ -402,6 +402,8 @@ func RepoAssignment(redirect bool, args ...bool) macaron.Handler { // repo is bare and display enable if ctx.Repo.Repository.IsBare { log.Debug("Bare repository: %s", ctx.Repo.RepoLink) + // NOTE: to prevent templating error + ctx.Data["BranchName"] = "" if displayBare { ctx.HTML(200, "repo/bare") }