Fix import of GitHub's wiki when the repository has not been created

上级 268fb004
......@@ -82,8 +82,12 @@ module Gitlab
end
true
rescue Gitlab::Shell::Error
false
rescue Gitlab::Shell::Error => e
if e.message =~ /repository not exported/
true
else
false
end
end
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册