0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-22 20:52:39 +01:00
This commit is contained in:
Unknwon 2014-11-20 18:03:42 -05:00
parent 0c92da7e9c
commit 3c3f7c2a56

View 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")
}