fix wiki check
This commit is contained in:
parent
9d0bceb3f0
commit
54f00b7487
2 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,8 @@ module Gitlab
|
|||
|
||||
if bare_repo.wiki_exists?
|
||||
FileUtils.mv(wiki_path, File.join(project.repository_storage_path, project.disk_path + '.wiki.git'))
|
||||
else
|
||||
project.create_wiki
|
||||
end
|
||||
|
||||
true
|
||||
|
|
|
@ -137,6 +137,7 @@ describe Gitlab::BareRepositoryImport::Importer, repository: true do
|
|||
project = Project.find_by_full_path("#{admin.full_path}/#{project_path}")
|
||||
|
||||
expect(File).to exist(File.join(project.repository_storage_path, project.disk_path + '.git'))
|
||||
expect(File).to exist(File.join(project.repository_storage_path, project.disk_path + '.wiki.git'))
|
||||
end
|
||||
|
||||
it 'moves an existing project to the correct path' do
|
||||
|
|
Loading…
Reference in a new issue