aboutsummaryrefslogtreecommitdiffstats
path: root/modules/cron
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-07-13 20:16:31 +0800
committerGitHub <noreply@github.com>2021-07-13 14:16:31 +0200
commit67f135ca5ddfcab4391a00af4936d0260079cd97 (patch)
tree1c8019e8dfdf71ad425e9f2bbac0ac94910407c0 /modules/cron
parentb81106be3faadf7821c30b18fb1cec6c27041896 (diff)
downloadgitea-67f135ca5ddfcab4391a00af4936d0260079cd97.tar.gz
gitea-67f135ca5ddfcab4391a00af4936d0260079cd97.zip
Fix archive error when rename repo or user (#16399)
Use repo id instead of full name to generate archive path
Diffstat (limited to 'modules/cron')
-rw-r--r--modules/cron/tasks_extended.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cron/tasks_extended.go b/modules/cron/tasks_extended.go
index 4a37e5d242..680f83e50c 100644
--- a/modules/cron/tasks_extended.go
+++ b/modules/cron/tasks_extended.go
@@ -33,7 +33,7 @@ func registerDeleteRepositoryArchives() {
RunAtStart: false,
Schedule: "@annually",
}, func(ctx context.Context, _ *models.User, _ Config) error {
- return models.DeleteRepositoryArchives(ctx)
+ return repo_module.DeleteRepositoryArchives(ctx)
})
}