0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-15 14:31:41 +01:00

fix: #1757 fix set MAX_CREATION_LIMIT as zero. (#1762)

* fix: #1757 fix set MAX_CREATION_LIMIT as zero.

* fix: missing default value
This commit is contained in:
Bo-Yi Wu 2017-05-21 22:48:35 +08:00 committed by Lunny Xiao
parent b0308d86dc
commit 1e40c2e579

View file

@ -871,6 +871,7 @@ please consider changing to GITEA_CUSTOM`)
// Determine and create root git repository path. // Determine and create root git repository path.
sec = Cfg.Section("repository") sec = Cfg.Section("repository")
Repository.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool() Repository.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool()
Repository.MaxCreationLimit = sec.Key("MAX_CREATION_LIMIT").MustInt(-1)
RepoRootPath = sec.Key("ROOT").MustString(path.Join(homeDir, "gitea-repositories")) RepoRootPath = sec.Key("ROOT").MustString(path.Join(homeDir, "gitea-repositories"))
forcePathSeparator(RepoRootPath) forcePathSeparator(RepoRootPath)
if !filepath.IsAbs(RepoRootPath) { if !filepath.IsAbs(RepoRootPath) {