diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2018-08-28 19:42:22 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2018-08-28 19:42:22 +0300 |
commit | 633a7d87a4643b41efe60fc348582f8f98c12345 (patch) | |
tree | c87f6a008e058637d23f51dfd80934c92fb836d9 /lib/backup | |
parent | b64ba567ff4409a9e10f764297ea110023d4aec8 (diff) |
WIP ignore custom hooks restore errorignore-custom-hooks-error
Diffstat (limited to 'lib/backup')
-rw-r--r-- | lib/backup/repository.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |