summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/services/project_transfer_service.rb2
-rw-r--r--lib/tasks/gitlab/enable_namespaces.rake2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/services/project_transfer_service.rb b/app/services/project_transfer_service.rb
index bbea6d2854f..2ff1aa919df 100644
--- a/app/services/project_transfer_service.rb
+++ b/app/services/project_transfer_service.rb
@@ -25,7 +25,7 @@ class ProjectTransferService
true
end
- rescue Gitlab::ProjectMover::ProjectMoveError => ex
+ rescue => ex
raise Project::TransferError.new(ex.message)
end
end
diff --git a/lib/tasks/gitlab/enable_namespaces.rake b/lib/tasks/gitlab/enable_namespaces.rake
index a33639a0013..6b7b75fd1b6 100644
--- a/lib/tasks/gitlab/enable_namespaces.rake
+++ b/lib/tasks/gitlab/enable_namespaces.rake
@@ -99,7 +99,7 @@ namespace :gitlab do
end
begin
- Gitlab::ProjectMover.new(project, '', group.path).execute
+ project.transfer(group.path)
puts "moved to #{new_path}".green
rescue
puts "failed moving to #{new_path}".red