summaryrefslogtreecommitdiffstats
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 6b5a365980..4e84b07e3e 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -86,6 +86,9 @@ var (
}
// Repository settings.
+ Repository struct {
+ PullRequestQueueLength int
+ }
RepoRootPath string
ScriptType string
AnsiCharset string
@@ -357,6 +360,7 @@ func NewContext() {
homeDir = strings.Replace(homeDir, "\\", "/", -1)
sec = Cfg.Section("repository")
+ Repository.PullRequestQueueLength = 10000
RepoRootPath = sec.Key("ROOT").MustString(path.Join(homeDir, "gogs-repositories"))
forcePathSeparator(RepoRootPath)
if !filepath.IsAbs(RepoRootPath) {