Commit b611da70 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix status when removing legacy tags from registry

parent b31c5332
...@@ -76,7 +76,7 @@ module Projects ...@@ -76,7 +76,7 @@ module Projects
return true unless Gitlab.config.registry.enabled return true unless Gitlab.config.registry.enabled
ContainerRepository.build_root_repository(project).tap do |repository| 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
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment