diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-08-21 16:28:07 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-08-22 07:33:20 +0300 |
commit | fb9e059a412d95ee3b7442a472ecfd9c67eafd7b (patch) | |
tree | 4e8c7790296335f28f6bbaa63f9078360fbea37c /app/services/groups/destroy_service.rb | |
parent | 02737b8508eb3cce6d8c5ece1f2ffb4772c609a5 (diff) |
Make sure repository's removal work for legacy and hashed storages
Diffstat (limited to 'app/services/groups/destroy_service.rb')
-rw-r--r-- | app/services/groups/destroy_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/groups/destroy_service.rb b/app/services/groups/destroy_service.rb index f565612a89d..e3f9d9ee95d 100644 --- a/app/services/groups/destroy_service.rb +++ b/app/services/groups/destroy_service.rb @@ -13,7 +13,7 @@ module Groups # Execute the destruction of the models immediately to ensure atomic cleanup. # Skip repository removal because we remove directory with namespace # that contain all these repositories - ::Projects::DestroyService.new(project, current_user, skip_repo: true).execute + ::Projects::DestroyService.new(project, current_user, skip_repo: project.legacy_storage?).execute end group.children.each do |group| |