Bläddra i källkod

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

* fix: #1757 fix set MAX_CREATION_LIMIT as zero.

* fix: missing default value
tags/v1.2.0-rc1
Bo-Yi Wu 7 år sedan
förälder
incheckning
1e40c2e579
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1
    0
      modules/setting/setting.go

+ 1
- 0
modules/setting/setting.go Visa fil

@@ -871,6 +871,7 @@ please consider changing to GITEA_CUSTOM`)
// Determine and create root git repository path.
sec = Cfg.Section("repository")
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"))
forcePathSeparator(RepoRootPath)
if !filepath.IsAbs(RepoRootPath) {

Laddar…
Avbryt
Spara