summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import/importer/repository_importer.rb
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2018-02-19 17:56:33 +0000
committerNick Thomas <nick@gitlab.com>2018-02-19 17:56:33 +0000
commit69b750aee9f51f1206495531e14c1f9b6d421600 (patch)
treea201fdad620d835b3e7aaf9cdd77c819d1873fc9 /lib/gitlab/github_import/importer/repository_importer.rb
parent7511e47f8583d6b5ce2b86c64a70a1616f607e1e (diff)
downloadgitlab-ce-69b750aee9f51f1206495531e14c1f9b6d421600.tar.gz
[GH Import] Create an empty wiki if wiki import failed
Diffstat (limited to 'lib/gitlab/github_import/importer/repository_importer.rb')
-rw-r--r--lib/gitlab/github_import/importer/repository_importer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/github_import/importer/repository_importer.rb b/lib/gitlab/github_import/importer/repository_importer.rb
index 7dd68a0d1cd..ab0b751fe24 100644
--- a/lib/gitlab/github_import/importer/repository_importer.rb
+++ b/lib/gitlab/github_import/importer/repository_importer.rb
@@ -63,6 +63,7 @@ module Gitlab
true
rescue Gitlab::Shell::Error => e
if e.message !~ /repository not exported/
+ project.create_wiki
fail_import("Failed to import the wiki: #{e.message}")
else
true