From 70fc1c5021185b6945932fd9dc27e26b5721caa8 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Tue, 12 Mar 2013 14:13:25 +0200 Subject: [PATCH] cleanup ProjectMover --- app/services/project_transfer_service.rb | 2 +- lib/tasks/gitlab/enable_namespaces.rake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/services/project_transfer_service.rb b/app/services/project_transfer_service.rb index bbea6d28..2ff1aa91 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 a33639a0..6b7b75fd 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