Commit 5949f552 authored by Stan Hu's avatar Stan Hu

Merge branch 'sh-fix-scope-error-container-repo' into 'master'

Fix scoping errors occuring for ContainerRepository on some builds

See merge request gitlab-org/gitlab-ce!21612
parents 559d89cf a5210ba8
...@@ -159,7 +159,7 @@ module Projects ...@@ -159,7 +159,7 @@ module Projects
def remove_legacy_registry_tags def remove_legacy_registry_tags
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|
break repository.has_tags? ? repository.delete_tags! : true break 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