diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-03 16:34:18 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-03 16:34:18 +0200 |
commit | e9d5e95c4403d39072b6d29555569b2d09b02fe6 (patch) | |
tree | cb70e8af587cb8bc0d7a2773ed7ed5ca5f577c08 /app/services/projects | |
parent | a9b221d91a5529c514615b640cdbbaf6b99bf790 (diff) | |
download | gitlab-ce-e9d5e95c4403d39072b6d29555569b2d09b02fe6.tar.gz |
Revert changes in services related to moving projects
Diffstat (limited to 'app/services/projects')
-rw-r--r-- | app/services/projects/transfer_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/projects/transfer_service.rb b/app/services/projects/transfer_service.rb index f46bf884e37..c2c2addeebe 100644 --- a/app/services/projects/transfer_service.rb +++ b/app/services/projects/transfer_service.rb @@ -36,9 +36,9 @@ module Projects raise TransferError.new("Project with same path in target namespace already exists") end - unless project.container_repositories.empty? + if project.has_container_registry_tags? # we currently doesn't support renaming repository if it contains images in container registry - raise TransferError.new('Project cannot be transferred, because images are present in its container registry') + raise TransferError.new('Project cannot be transferred, because tags are present in its container registry') end project.expire_caches_before_rename(old_path) |