summaryrefslogtreecommitdiffstats
path: root/modules/context
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/context
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/context')
-rw-r--r--modules/context/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go
index 0e883cc68d..8dadf3a1e6 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -254,6 +254,7 @@ func RepoAssignment(args ...bool) macaron.Handler {
ctx.Data["IsRepositoryWriter"] = ctx.Repo.IsWriter()
ctx.Data["DisableSSH"] = setting.SSH.Disabled
+ ctx.Data["DisableHTTP"] = setting.Repository.DisableHTTPGit
ctx.Data["CloneLink"] = repo.CloneLink()
ctx.Data["WikiCloneLink"] = repo.WikiCloneLink()