From 0885784f136b9b68653ec33fa733e962f3507f7e Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 12 Aug 2016 00:18:51 +0700 Subject: Wiki mirroring implementation (#3233) * Implement wiki mirroring, add Update mirrors operation to admin dashboard * bindata.go update after merge * Implement checking Git repo endpoint existence, support for BB included * Remove admin dashboard operation Fix bindata.go * Apply gofmt to repo model file * Try to remove bindata from PR * Revert accepted wiki names change in favor of better system * Remove unused imports --- modules/context/repo.go | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/context/repo.go b/modules/context/repo.go index af188814..ea3b445e 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -223,6 +223,7 @@ func RepoAssignment(args ...bool) macaron.Handler { ctx.Data["IsRepositoryOwner"] = ctx.Repo.IsOwner() ctx.Data["IsRepositoryAdmin"] = ctx.Repo.IsAdmin() ctx.Data["IsRepositoryWriter"] = ctx.Repo.IsWriter() + ctx.Data["IsRepositoryMirror"] = repo.IsMirror ctx.Data["DisableSSH"] = setting.SSH.Disabled ctx.Data["CloneLink"] = repo.CloneLink() -- cgit v1.2.3