Commit 54f00b74 authored by James Lopez's avatar James Lopez

fix wiki check

parent 9d0bceb3
...@@ -77,6 +77,8 @@ module Gitlab ...@@ -77,6 +77,8 @@ module Gitlab
if bare_repo.wiki_exists? if bare_repo.wiki_exists?
FileUtils.mv(wiki_path, File.join(project.repository_storage_path, project.disk_path + '.wiki.git')) FileUtils.mv(wiki_path, File.join(project.repository_storage_path, project.disk_path + '.wiki.git'))
else
project.create_wiki
end end
true true
......
...@@ -137,6 +137,7 @@ describe Gitlab::BareRepositoryImport::Importer, repository: true do ...@@ -137,6 +137,7 @@ describe Gitlab::BareRepositoryImport::Importer, repository: true do
project = Project.find_by_full_path("#{admin.full_path}/#{project_path}") 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 + '.git'))
expect(File).to exist(File.join(project.repository_storage_path, project.disk_path + '.wiki.git'))
end end
it 'moves an existing project to the correct path' do it 'moves an existing project to the correct path' do
......
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