diff options
author | Valery Sizov <valery@gitlab.com> | 2018-02-19 20:56:33 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2018-02-19 20:56:33 +0300 |
commit | 69b750aee9f51f1206495531e14c1f9b6d421600 (patch) | |
tree | a201fdad620d835b3e7aaf9cdd77c819d1873fc9 /lib | |
parent | 7511e47f8583d6b5ce2b86c64a70a1616f607e1e (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.rb | 1 |
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 |