Commit 1bf0ce20 authored by Stan Hu's avatar Stan Hu
Browse files

Fix scoping errors occuring for ContainerRepository on some builds

parent a212aa93e033
......@@ -159,7 +159,7 @@ def log_destroy_event
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
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