0
0
mirror of https://github.com/go-gitea/gitea.git synced 2026-06-14 17:30:19 +02:00

Fix in /modules/setting/repository.go

This commit is contained in:
DmitryFrolovTri 2023-05-19 06:58:56 +00:00
parent ef760d7e66
commit 51a769720f

View File

@ -298,7 +298,8 @@ func loadRepositoryFrom(rootCfg ConfigProvider) {
sec := rootCfg.Section("repository")
EnableSizeLimit = sec.Key("ENABLE_SIZE_LIMIT").MustBool(false)
RepoSizeLimit, _ = humanize.ParseBytes(sec.Key("REPO_SIZE_LIMIT").MustString("0"))
v, _ := humanize.ParseBytes(sec.Key("REPO_SIZE_LIMIT").MustString("0"))
RepoSizeLimit = int64(v)
Repository.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool()
Repository.UseCompatSSHURI = sec.Key("USE_COMPAT_SSH_URI").MustBool()