mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-24 19:19:39 +08:00
small fix
This commit is contained in:
parent
4249cec68c
commit
d6f3333e48
@ -102,7 +102,7 @@ func Single(ctx *middleware.Context, params martini.Params) {
|
||||
if readmeFile.Size > 1024*1024 || readmeFile.Filemode != git.FileModeBlob {
|
||||
ctx.Data["FileIsLarge"] = true
|
||||
} else if blob, err := readmeFile.LookupBlob(); err != nil {
|
||||
ctx.Data["FileIsLarge"] = true
|
||||
ctx.Data["ReadmeExist"] = false
|
||||
} else {
|
||||
// current repo branch link
|
||||
urlPrefix := "http://" + base.Domain + "/" + ctx.Repo.Owner.LowerName + "/" +
|
||||
|
Loading…
Reference in New Issue
Block a user