diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-07-13 20:16:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-13 14:16:31 +0200 |
commit | 67f135ca5ddfcab4391a00af4936d0260079cd97 (patch) | |
tree | 1c8019e8dfdf71ad425e9f2bbac0ac94910407c0 /modules/cron | |
parent | b81106be3faadf7821c30b18fb1cec6c27041896 (diff) | |
download | gitea-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.go | 2 |
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) }) } |