more fixes - restoring repo

This commit is contained in:
James Lopez 2016-05-05 14:21:27 +02:00
parent 28ba2176dc
commit f11920e21d
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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