summaryrefslogtreecommitdiff
path: root/app/services/groups
diff options
context:
space:
mode:
authorGabriel Mazetto <brodock@gmail.com>2017-08-21 15:28:07 +0200
committerGabriel Mazetto <brodock@gmail.com>2017-08-22 06:33:20 +0200
commitfb9e059a412d95ee3b7442a472ecfd9c67eafd7b (patch)
tree4e8c7790296335f28f6bbaa63f9078360fbea37c /app/services/groups
parent02737b8508eb3cce6d8c5ece1f2ffb4772c609a5 (diff)
downloadgitlab-ce-fb9e059a412d95ee3b7442a472ecfd9c67eafd7b.tar.gz
Make sure repository's removal work for legacy and hashed storages28283-uuid-storage
Diffstat (limited to 'app/services/groups')
-rw-r--r--app/services/groups/destroy_service.rb2
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|