Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorValery Sizov <valery@gitlab.com>2018-02-19 20:56:33 +0300
committerNick Thomas <nick@gitlab.com>2018-02-19 20:56:33 +0300
commit69b750aee9f51f1206495531e14c1f9b6d421600 (patch)
treea201fdad620d835b3e7aaf9cdd77c819d1873fc9 /lib
parent7511e47f8583d6b5ce2b86c64a70a1616f607e1e (diff)
[GH Import] Create an empty wiki if wiki import failed
Diffstat (limited to 'lib')
-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