]> source.dussan.org Git - gitea.git/commitdiff
fix: #1757 fix set MAX_CREATION_LIMIT as zero. (#1762)
authorBo-Yi Wu <appleboy.tw@gmail.com>
Sun, 21 May 2017 14:48:35 +0000 (22:48 +0800)
committerLunny Xiao <xiaolunwen@gmail.com>
Sun, 21 May 2017 14:48:35 +0000 (22:48 +0800)
* fix: #1757 fix set MAX_CREATION_LIMIT as zero.

* fix: missing default value

modules/setting/setting.go

index 4acad4239335f2b5ecb4041a753e49860b485bba..c3a829715bc9bd49ca75fdc1676deb59679a5f48 100644 (file)
@@ -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) {