fix issue restoring repo
This commit is contained in:
parent
7204018a36
commit
28ba2176dc
|
@ -9,12 +9,14 @@ module Gitlab
|
|||
end
|
||||
|
||||
def restore
|
||||
return true unless File.exists?(@path)
|
||||
return true unless File.exists?(@path_to_bundle)
|
||||
|
||||
FileUtils.mkdir_p(repos_path)
|
||||
FileUtils.mkdir_p(path_to_repo)
|
||||
|
||||
git_unbundle(git_bin_path: Gitlab.config.git.bin_path, repo_path: path_to_repo, bundle_path: @path_to_bundle)
|
||||
rescue
|
||||
false
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in New Issue