mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
Fix in /modules/setting/repository.go
This commit is contained in:
1 parent
ef760d7e66
commit
51a769720f
1 file changed
+2
-1
@@ -298,7 +298,8 @@ func loadRepositoryFrom(rootCfg ConfigProvider) {
|
|||||||
sec := rootCfg.Section("repository")
|
sec := rootCfg.Section("repository")
|
||||||
EnableSizeLimit = sec.Key("ENABLE_SIZE_LIMIT").MustBool(false)
|
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.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool()
|
||||||
Repository.UseCompatSSHURI = sec.Key("USE_COMPAT_SSH_URI").MustBool()
|
Repository.UseCompatSSHURI = sec.Key("USE_COMPAT_SSH_URI").MustBool()
|
||||||
|
|||||||
Reference in new issue
Block a user