add config and update locale

This commit is contained in:
Unknwon 2015-10-24 15:35:26 -04:00
parent 2be5837cb0
commit 63e6e31271
5 changed files with 11 additions and 8 deletions

File diff suppressed because one or more lines are too long

View file

@ -360,7 +360,7 @@ func NewContext() {
homeDir = strings.Replace(homeDir, "\\", "/", -1)
sec = Cfg.Section("repository")
Repository.PullRequestQueueLength = 10000
Repository.PullRequestQueueLength = sec.Key("PULL_REQUEST_QUEUE_LENGTH").MustInt(10000)
RepoRootPath = sec.Key("ROOT").MustString(path.Join(homeDir, "gogs-repositories"))
forcePathSeparator(RepoRootPath)
if !filepath.IsAbs(RepoRootPath) {