diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-20 18:03:42 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-20 18:03:42 -0500 |
commit | 3c3f7c2a56ba18d7210cc40e33e64da5219ef990 (patch) | |
tree | 46e058693949699db783eebbd1c96cef9baa90ca /modules/middleware | |
parent | 0c92da7e9c4b4f41c016d14079db2ee405dbffba (diff) | |
download | gitea-3c3f7c2a56ba18d7210cc40e33e64da5219ef990.tar.gz gitea-3c3f7c2a56ba18d7210cc40e33e64da5219ef990.zip |
Fix #643
Diffstat (limited to 'modules/middleware')
-rw-r--r-- | modules/middleware/repo.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go index 0aae122d22..7cc7a6d813 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") } |