mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-03 18:40:19 +00:00
Fix #643
This commit is contained in:
parent
0c92da7e9c
commit
3c3f7c2a56
1 changed files with 2 additions and 0 deletions
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue