diff options
Diffstat (limited to 'app/workers/repository_cleanup_worker.rb')
-rw-r--r-- | app/workers/repository_cleanup_worker.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/workers/repository_cleanup_worker.rb b/app/workers/repository_cleanup_worker.rb index 33b7223dd95..03c9add6afb 100644 --- a/app/workers/repository_cleanup_worker.rb +++ b/app/workers/repository_cleanup_worker.rb @@ -27,8 +27,9 @@ class RepositoryCleanupWorker # rubocop:disable Scalability/IdempotentWorker project = Project.find(project_id) user = User.find(user_id) - # Ensure the file is removed - project.bfg_object_map.remove! + # Ensure the file is removed and the repository is made read-write again + Projects::CleanupService.cleanup_after(project) + notification_service.repository_cleanup_failure(project, user, error) end |