aboutsummaryrefslogtreecommitdiff
path: root/modules/setting/setting.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-12-22 01:51:49 -0500
committerUnknwon <u@gogs.io>2016-12-22 01:51:49 -0500
commit16d3e7085efc1143cdae026fda4fe86d15f615dd (patch)
treee43e98d63f5d76f19d22476220b11e7e423ec904 /modules/setting/setting.go
parentc47fbc629bec5b4c213ddff24e96c20ed8f4ca74 (diff)
Minor fix for PR #3667
Diffstat (limited to 'modules/setting/setting.go')
-rw-r--r--modules/setting/setting.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index ea76e6c4..42bbd349 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -118,7 +118,7 @@ var (
MirrorQueueLength int
PullRequestQueueLength int
PreferredLicenses []string
- DisableHTTPGit bool
+ DisableHTTPGit bool `ini:"DISABLE_HTTP_GIT"`
// Repository editor settings
Editor struct {
@@ -495,7 +495,6 @@ 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) {