summaryrefslogtreecommitdiffstats
path: root/modules/cron
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-11-30 02:26:29 -0500
committerUnknwon <joe2010xtmf@163.com>2014-11-30 02:26:29 -0500
commitd75013a0e88a1f46fd16f5ba9344ff17ed84cd37 (patch)
treec153e256f1608c219e4717e3fab217c8aec1187b /modules/cron
parentb6437b5a4c52bceb8032b00b474c2aa0ced69575 (diff)
downloadgitea-d75013a0e88a1f46fd16f5ba9344ff17ed84cd37.tar.gz
gitea-d75013a0e88a1f46fd16f5ba9344ff17ed84cd37.zip
fix #580
Diffstat (limited to 'modules/cron')
-rw-r--r--modules/cron/manager.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/cron/manager.go b/modules/cron/manager.go
index 563426fb79..fcf559bcb0 100644
--- a/modules/cron/manager.go
+++ b/modules/cron/manager.go
@@ -14,8 +14,10 @@ import (
var c = New()
func NewCronContext() {
+ models.GitFsck()
c.AddFunc("Update mirrors", "@every 1h", models.MirrorUpdate)
c.AddFunc("Deliver hooks", fmt.Sprintf("@every %dm", setting.WebhookTaskInterval), models.DeliverHooks)
+ c.AddFunc("Repository health check", "@every 1h", models.GitFsck)
c.Start()
}