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:
parent
ef760d7e66
commit
51a769720f
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user