Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 17:34:18 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-03 17:34:18 +0300
commite9d5e95c4403d39072b6d29555569b2d09b02fe6 (patch)
treecb70e8af587cb8bc0d7a2773ed7ed5ca5f577c08 /app/services/projects
parenta9b221d91a5529c514615b640cdbbaf6b99bf790 (diff)
Revert changes in services related to moving projects
Diffstat (limited to 'app/services/projects')
-rw-r--r--app/services/projects/transfer_service.rb4
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)