Commit 2c6af766 authored by Doug Stull's avatar Doug Stull

Removes reporting on non-existant failures for import rake task

- SequentialImporter always returns true, so there isn't a
  possibility for the errors to be reported in that way.

Changelog: fixed
parent e3fa3f3a
...@@ -46,21 +46,14 @@ class GithubImport ...@@ -46,21 +46,14 @@ class GithubImport
def import! def import!
@project.import_state.force_start @project.import_state.force_start
import_success = false
timings = Benchmark.measure do timings = Benchmark.measure do
import_success = Gitlab::GithubImport::SequentialImporter Gitlab::GithubImport::SequentialImporter
.new(@project, token: @options[:token]) .new(@project, token: @options[:token])
.execute .execute
end end
if import_success
@project.after_import @project.after_import
puts "Import finished. Timings: #{timings}".color(:green) puts "Import finished. Timings: #{timings}".color(:green)
else
puts "Import was not successful. Errors were as follows:"
puts @project.import_state.last_error
end
end end
def new_project def new_project
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment