Can disable GIT interactions by HTTP protocol
This commit is contained in:
parent
7e15ff9486
commit
9d66497abc
7 changed files with 40 additions and 13 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -116,6 +116,7 @@ var (
|
|||
MirrorQueueLength int
|
||||
PullRequestQueueLength int
|
||||
PreferredLicenses []string
|
||||
DisableHttpGit bool
|
||||
|
||||
// Repository editor settings
|
||||
Editor struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue