try to move wiki if it does not exist

master
Dmitriy Zaporozhets 2013-03-25 15:52:54 +02:00
parent 6752968bb5
commit 1496c01521
1 changed files with 1 additions and 3 deletions

View File

@ -27,9 +27,7 @@ class ProjectTransferService
end
# Move wiki repo also if present
if project.wikis.any?
gitlab_shell.mv_repository("#{old_path}.wiki", "#{new_path}.wiki")
end
gitlab_shell.mv_repository("#{old_path}.wiki", "#{new_path}.wiki")
true
end