Can disable GIT interactions by HTTP protocol

This commit is contained in:
Thibault Meyer 2016-09-18 10:54:33 +02:00
parent 7e15ff9486
commit 9d66497abc
No known key found for this signature in database
GPG key ID: C52D76D2CCF24933
7 changed files with 40 additions and 13 deletions

View file

@ -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()

View file

@ -116,6 +116,7 @@ var (
MirrorQueueLength int
PullRequestQueueLength int
PreferredLicenses []string
DisableHttpGit bool
// Repository editor settings
Editor struct {