Skip to content

Commit

Permalink
fix: #1757 fix set MAX_CREATION_LIMIT as zero. (#1762)
Browse files Browse the repository at this point in the history
* fix: #1757 fix set MAX_CREATION_LIMIT as zero.

* fix: missing default value
  • Loading branch information
appleboy authored and lunny committed May 21, 2017
1 parent b0308d8 commit 1e40c2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/setting/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1e40c2e

Please sign in to comment.