From 633a7d87a4643b41efe60fc348582f8f98c12345 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Tue, 28 Aug 2018 18:42:22 +0200 Subject: WIP ignore custom hooks restore error --- lib/backup/repository.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/backup') diff --git a/lib/backup/repository.rb b/lib/backup/repository.rb index 906ed498026..068b6e3e072 100644 --- a/lib/backup/repository.rb +++ b/lib/backup/repository.rb @@ -69,6 +69,8 @@ module Backup custom_hooks_path = custom_hooks_tar(project) Gitlab::GitalyClient::RepositoryService.new(project.repository) .restore_custom_hooks(custom_hooks_path) +# rescue => e +# progress_warn(project, e, 'Failed to restore custom hooks') end def restore @@ -84,6 +86,7 @@ module Backup if File.exist?(path_to_project_bundle) begin project.repository.create_from_bundle(path_to_project_bundle) +puts 'created from bundle' restore_custom_hooks(project) restore_repo_success = true rescue => e -- cgit v1.2.3