summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-02-19 17:56:33 +0000
committerNick Thomas <nick@gitlab.com>2018-02-19 17:56:33 +0000
commit8cfa5ccf5342f98aaf6b0a292d337d3211d5e7ff (patch)
treea201fdad620d835b3e7aaf9cdd77c819d1873fc9 /lib
parent7511e47f8583d6b5ce2b86c64a70a1616f607e1e (diff)
parent69b750aee9f51f1206495531e14c1f9b6d421600 (diff)
downloadgitlab-ce-8cfa5ccf5342f98aaf6b0a292d337d3211d5e7ff.tar.gz
Merge branch '4826-github-import-wiki-fix-1' into 'master'
[GH Import] Create an empty wiki if wiki import failed Closes #43020 See merge request gitlab-org/gitlab-ce!17112
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