diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-30 02:26:29 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-30 02:26:29 -0500 |
commit | d75013a0e88a1f46fd16f5ba9344ff17ed84cd37 (patch) | |
tree | c153e256f1608c219e4717e3fab217c8aec1187b /modules/cron | |
parent | b6437b5a4c52bceb8032b00b474c2aa0ced69575 (diff) | |
download | gitea-d75013a0e88a1f46fd16f5ba9344ff17ed84cd37.tar.gz gitea-d75013a0e88a1f46fd16f5ba9344ff17ed84cd37.zip |
fix #580
Diffstat (limited to 'modules/cron')
-rw-r--r-- | modules/cron/manager.go | 2 |
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() } |