mirror of
https://gitee.com/gitea/gitea
synced 2025-11-22 01:10:26 +08:00
Can disable GIT interactions by HTTP protocol
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user