summaryrefslogtreecommitdiffstats
path: root/modules/middleware/repo.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-08 20:06:12 -0500
committerUnknwon <u@gogs.io>2015-12-08 20:06:12 -0500
commit120cd4e4716d11f79a7e8c41c066383e579d480a (patch)
treeb25ae1b31ecf5437250c388d55ee940e294a4187 /modules/middleware/repo.go
parent1cbd4c01fbfd4e15e36a722c9e2cc19366be3df8 (diff)
downloadgitea-120cd4e4716d11f79a7e8c41c066383e579d480a.tar.gz
gitea-120cd4e4716d11f79a7e8c41c066383e579d480a.zip
#1984 Better mirror repo management
Diffstat (limited to 'modules/middleware/repo.go')
-rw-r--r--modules/middleware/repo.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/middleware/repo.go b/modules/middleware/repo.go
index 1b328be126..c52c162f0d 100644
--- a/modules/middleware/repo.go
+++ b/modules/middleware/repo.go
@@ -129,6 +129,7 @@ func RepoAssignment(args ...bool) macaron.Handler {
return
}
ctx.Data["MirrorInterval"] = ctx.Repo.Mirror.Interval
+ ctx.Data["Mirror"] = ctx.Repo.Mirror
}
ctx.Repo.Repository = repo