Skip to content
Snippets Groups Projects
Commit 9d7e7327 authored by Ahmad Hassan's avatar Ahmad Hassan
Browse files

Move backup custom hooks up a level

parent 5308b51e
No related branches found
No related tags found
1 merge request!10495Merge Requests - Assignee
Loading
Loading
@@ -55,6 +55,8 @@ module Backup
backup_project_local(project)
end
end
backup_custom_hooks(project)
rescue => e
progress_warn(project, e, 'Failed to backup repo')
end
Loading
Loading
@@ -63,8 +65,6 @@ module Backup
path_to_project_bundle = path_to_bundle(project)
Gitlab::GitalyClient::RepositoryService.new(project.repository)
.create_bundle(path_to_project_bundle)
backup_custom_hooks(project)
end
 
def backup_project_local(project)
Loading
Loading
@@ -74,8 +74,6 @@ module Backup
 
path_to_project_bundle = path_to_bundle(project)
 
backup_custom_hooks(project)
cmd = %W(#{Gitlab.config.git.bin_path} --git-dir=#{path_to_project_repo} bundle create #{path_to_project_bundle} --all)
output, status = Gitlab::Popen.popen(cmd)
progress_warn(project, cmd.join(' '), output) unless status.zero?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment