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:
Diffstat (limited to 'lib/backup/repository.rb')
-rw-r--r--lib/backup/repository.rb3
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