Commit 42d7d355 authored by Sean McGivern's avatar Sean McGivern

Merge branch 'sh-restore-all-refs-backup' into 'master'

Ensure all refs are restored on a backup/restore

Closes #38352

See merge request gitlab-org/gitlab-ce!14595
parents aa445119 f3f304dc
---
title: Ensure all refs are restored on a restore from backup
merge_request:
author:
type: fixed
...@@ -78,7 +78,7 @@ module Backup ...@@ -78,7 +78,7 @@ module Backup
project.ensure_storage_path_exists project.ensure_storage_path_exists
cmd = if File.exist?(path_to_project_bundle) cmd = if File.exist?(path_to_project_bundle)
%W(#{Gitlab.config.git.bin_path} clone --bare #{path_to_project_bundle} #{path_to_project_repo}) %W(#{Gitlab.config.git.bin_path} clone --bare --mirror #{path_to_project_bundle} #{path_to_project_repo})
else else
%W(#{Gitlab.config.git.bin_path} init --bare #{path_to_project_repo}) %W(#{Gitlab.config.git.bin_path} init --bare #{path_to_project_repo})
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment