]> source.dussan.org Git - gitea.git/commitdiff
Fix #643
authorUnknwon <joe2010xtmf@163.com>
Thu, 20 Nov 2014 23:03:42 +0000 (18:03 -0500)
committerUnknwon <joe2010xtmf@163.com>
Thu, 20 Nov 2014 23:03:42 +0000 (18:03 -0500)
modules/middleware/repo.go

index 0aae122d2288368dffcb8f9c36154459a378ec31..7cc7a6d813ab449c3411912b489374e5d6737610 100644 (file)
@@ -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")
                        }