diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/context/repo.go | 1 | ||||
-rw-r--r-- | modules/setting/setting.go | 1 |
2 files changed, 2 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() diff --git a/modules/setting/setting.go b/modules/setting/setting.go index cff3e7dbc2..0e0d8f9d3a 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -116,6 +116,7 @@ var ( MirrorQueueLength int PullRequestQueueLength int PreferredLicenses []string + DisableHttpGit bool // Repository editor settings Editor struct { |