Merge pull request #1111 from vitalvas/develop

Add function in cron to autofix counters in repository
This commit is contained in:
无闻 2015-07-25 07:22:50 +08:00
commit b838e94980
2 changed files with 38 additions and 0 deletions

View file

@ -19,6 +19,7 @@ func NewCronContext() {
if setting.Git.Fsck.Enable {
c.AddFunc("Repository health check", fmt.Sprintf("@every %dh", setting.Git.Fsck.Interval), models.GitFsck)
}
c.AddFunc("Check repository statistics", "@every 24h", models.CheckRepoStats)
c.Start()
}