summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-17 14:22:51 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-17 14:22:51 -0400
commit8a09256941ab0e2ca81e98ac35081f6dc04bb22a (patch)
tree8c42bbcc28cdbf77112f1581ec2529488b71dbf7 /modules/setting
parentc03f5a2c7cd0c3cba12a8cfbbac03b13136fe9f9 (diff)
downloadgitea-8a09256941ab0e2ca81e98ac35081f6dc04bb22a.tar.gz
gitea-8a09256941ab0e2ca81e98ac35081f6dc04bb22a.zip
Mirror fix and fix #481
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index c56ad2421a..5fb1d52d0b 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -65,7 +65,6 @@ var (
// Picture settings.
PictureService string
DisableGravatar bool
- MaxGitDiffLines int
// Log settings.
LogRootPath string
@@ -94,6 +93,12 @@ var (
SessionProvider string
SessionConfig *session.Config
+ // Git settings.
+ MaxGitDiffLines int
+
+ // I18n settings.
+ Langs, Names []string
+
// Global setting objects.
Cfg *goconfig.ConfigFile
ConfRootPath string
@@ -101,9 +106,6 @@ var (
ProdMode bool
RunUser string
IsWindows bool
-
- // I18n settings.
- Langs, Names []string
)
func init() {
@@ -245,7 +247,7 @@ func NewConfigContext() {
[]string{"server"})
DisableGravatar = Cfg.MustBool("picture", "DISABLE_GRAVATAR")
- MaxGitDiffLines = Cfg.MustInt("git", "MAX_GITDIFF_LINES", 5000)
+ MaxGitDiffLines = Cfg.MustInt("git", "MAX_GITDIFF_LINES", 10000)
Langs = Cfg.MustValueArray("i18n", "LANGS", ",")
Names = Cfg.MustValueArray("i18n", "NAMES", ",")