mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
display bare repo page
This commit is contained in:
@@ -77,10 +77,6 @@ func Single(ctx *middleware.Context, params martini.Params) {
|
||||
if err != nil {
|
||||
ctx.Handle(404, "repo.Single(GetBranches)", err)
|
||||
return
|
||||
} else if ctx.Repo.Repository.IsBare {
|
||||
ctx.Data["IsBareRepo"] = true
|
||||
ctx.HTML(200, "repo/single")
|
||||
return
|
||||
}
|
||||
ctx.Data["Branches"] = brs
|
||||
|
||||
@@ -264,12 +260,6 @@ func Setting(ctx *middleware.Context, params martini.Params) {
|
||||
|
||||
ctx.Data["IsRepoToolbarSetting"] = true
|
||||
|
||||
if ctx.Repo.Repository.IsBare {
|
||||
ctx.Data["IsBareRepo"] = true
|
||||
ctx.HTML(200, "repo/setting")
|
||||
return
|
||||
}
|
||||
|
||||
var title string
|
||||
if t, ok := ctx.Data["Title"].(string); ok {
|
||||
title = t
|
||||
|
Reference in New Issue
Block a user