diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-05 15:32:45 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-05 15:32:45 +0300 |
commit | b611da70afeffbffd4a8fc8d5ddf61aa2362617d (patch) | |
tree | 9f5669ab4e6a013f669bc51059274f216e74cdb8 /app/services/projects/destroy_service.rb | |
parent | b31c53320ea930f85dabbea674103d2faa59471f (diff) |
Fix status when removing legacy tags from registry
Diffstat (limited to 'app/services/projects/destroy_service.rb')
-rw-r--r-- | app/services/projects/destroy_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/destroy_service.rb b/app/services/projects/destroy_service.rb index f2d12402239..06d8d143231 100644 --- a/app/services/projects/destroy_service.rb +++ b/app/services/projects/destroy_service.rb @@ -76,7 +76,7 @@ module Projects return true unless Gitlab.config.registry.enabled ContainerRepository.build_root_repository(project).tap do |repository| - return repository.delete_tags! if repository.has_tags? + return repository.has_tags? ? repository.delete_tags! : true end end |