summaryrefslogtreecommitdiffstats
path: root/modules/context/repo.go
diff options
context:
space:
mode:
authorThibault Meyer <meyer.thibault@gmail.com>2016-09-18 10:54:33 +0200
committerThibault Meyer <meyer.thibault@gmail.com>2016-09-18 10:54:33 +0200
commit9d66497abca96905fbeba53bf8983301710d6064 (patch)
treea2729e6cdf7f4b7be54cd2cf72a49610835b16ce /modules/context/repo.go
parent7e15ff9486cde36b76f3d39b7db23f89278acb7d (diff)
downloadgitea-9d66497abca96905fbeba53bf8983301710d6064.tar.gz
gitea-9d66497abca96905fbeba53bf8983301710d6064.zip
Can disable GIT interactions by HTTP protocol
Diffstat (limited to 'modules/context/repo.go')
-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 f078523e75..8b52a20a4a 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -256,6 +256,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()