From b31c53320ea930f85dabbea674103d2faa59471f Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Wed, 5 Apr 2017 14:20:33 +0200 Subject: [PATCH] Revert unneeded change in project destroy service --- app/services/projects/destroy_service.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/services/projects/destroy_service.rb b/app/services/projects/destroy_service.rb index a47e74ba9b0..f2d12402239 100644 --- a/app/services/projects/destroy_service.rb +++ b/app/services/projects/destroy_service.rb @@ -29,6 +29,7 @@ module Projects Project.transaction do project.team.truncate + project.destroy! unless remove_legacy_registry_tags raise_error('Failed to remove some tags in project container registry. Please try again or contact administrator.') @@ -41,8 +42,6 @@ module Projects unless remove_repository(wiki_path) raise_error('Failed to remove wiki repository. Please try again or contact administrator.') end - - project.destroy! end log_info("Project \"#{project.path_with_namespace}\" was removed")