summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorThibault Meyer <meyer.thibault@gmail.com>2016-10-04 18:58:14 +0200
committerThibault Meyer <meyer.thibault@gmail.com>2016-10-04 18:58:14 +0200
commit93f1eabe3087ac723f8f404def8dba40359f0d64 (patch)
treee3548dc23d09ddd9cfb93393b5ca1961e32cc2b6 /modules/setting
parent9d66497abca96905fbeba53bf8983301710d6064 (diff)
downloadgitea-93f1eabe3087ac723f8f404def8dba40359f0d64.tar.gz
gitea-93f1eabe3087ac723f8f404def8dba40359f0d64.zip
rename variable + fix wiki link
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index 0e0d8f9d3a..6470031071 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -116,7 +116,7 @@ var (
MirrorQueueLength int
PullRequestQueueLength int
PreferredLicenses []string
- DisableHttpGit bool
+ DisableHTTPGit bool
// Repository editor settings
Editor struct {
@@ -491,6 +491,7 @@ func NewContext() {
// Determine and create root git repository path.
sec = Cfg.Section("repository")
+ Repository.DisableHTTPGit = sec.Key("DISABLE_HTTP_GIT").MustBool()
RepoRootPath = sec.Key("ROOT").MustString(path.Join(homeDir, "gogs-repositories"))
forcePathSeparator(RepoRootPath)
if !filepath.IsAbs(RepoRootPath) {