more fixes - restoring repo
This commit is contained in:
parent
28ba2176dc
commit
f11920e21d
|
@ -45,11 +45,11 @@ module Gitlab
|
|||
end
|
||||
|
||||
def repo_path
|
||||
File.join('storage_path', 'project.bundle')
|
||||
File.join(storage_path, 'project.bundle')
|
||||
end
|
||||
|
||||
def wiki_repo_path
|
||||
File.join('storage_path', 'project.wiki.bundle')
|
||||
File.join(storage_path, 'project.wiki.bundle')
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -14,7 +14,7 @@ module Gitlab
|
|||
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)
|
||||
git_unbundle(repo_path: path_to_repo, bundle_path: @path_to_bundle)
|
||||
rescue
|
||||
false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue