summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorBo-Yi Wu <appleboy.tw@gmail.com>2017-05-21 22:48:35 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-21 22:48:35 +0800
commit1e40c2e579145b414bea7a7786e955292e2251b2 (patch)
tree74206c0b3cfdc44edfedbae5b98ef38ab0644411 /modules/setting
parentb0308d86dc124f17d6b67e9d1022a4085c9267e1 (diff)
downloadgitea-1e40c2e579145b414bea7a7786e955292e2251b2.tar.gz
gitea-1e40c2e579145b414bea7a7786e955292e2251b2.zip
fix: #1757 fix set MAX_CREATION_LIMIT as zero. (#1762)
* fix: #1757 fix set MAX_CREATION_LIMIT as zero. * fix: missing default value
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 4acad42393..c3a829715b 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -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) {