summaryrefslogtreecommitdiffstats
path: root/modules/setting
diff options
context:
space:
mode:
authorRachid Zarouali <xinity@users.noreply.github.com>2016-11-07 11:23:30 +0100
committerGitHub <noreply@github.com>2016-11-07 11:23:30 +0100
commitbe5607e510f410ac82247c3b4b8a4bc6504e7cee (patch)
tree7e00b2e24482ff795085418e3891fb45c4e9cee4 /modules/setting
parent5a6f7edde97c5ff9811bbc79f5f5fc4c16703683 (diff)
parente54dec7ce518b170ec148f1c35bc1e5ad174dc2b (diff)
downloadgitea-be5607e510f410ac82247c3b4b8a4bc6504e7cee.tar.gz
gitea-be5607e510f410ac82247c3b4b8a4bc6504e7cee.zip
Merge pull request #50 from 0xbaadf00d/feature/2583-disablehttpcloning
Disable HTTP cloning
Diffstat (limited to 'modules/setting')
-rw-r--r--modules/setting/setting.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go
index c2e4f43a12..923c45674c 100644
--- a/modules/setting/setting.go
+++ b/modules/setting/setting.go
@@ -117,6 +117,7 @@ var (
MirrorQueueLength int
PullRequestQueueLength int
PreferredLicenses []string
+ DisableHTTPGit bool
// Repository editor settings
Editor struct {
@@ -491,6 +492,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) {