diff options
Diffstat (limited to 'app/services/destroy_group_service.rb')
-rw-r--r-- | app/services/destroy_group_service.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/services/destroy_group_service.rb b/app/services/destroy_group_service.rb index c1add7b92e8..d929a676293 100644 --- a/app/services/destroy_group_service.rb +++ b/app/services/destroy_group_service.rb @@ -6,9 +6,10 @@ class DestroyGroupService end def execute - # TODO: Skip remove repository so Namespace#rm_dir works @group.projects.each do |project| - ::Projects::DestroyService.new(project, current_user, {}).execute + # Skip repository removal because we remove directory with namespace + # that contain all this repositories + ::Projects::DestroyService.new(project, current_user, skip_repo: true).execute end @group.destroy |