Commit a5210ba8 authored by Stan Hu's avatar Stan Hu

Fix scoping errors occuring for ContainerRepository on some builds

parent 1d69d26f
......@@ -159,7 +159,7 @@ module Projects
def remove_legacy_registry_tags
return true unless Gitlab.config.registry.enabled
ContainerRepository.build_root_repository(project).tap do |repository|
::ContainerRepository.build_root_repository(project).tap do |repository|
break repository.has_tags? ? repository.delete_tags! : true
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