diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-10-18 21:46:05 +0200 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-11-07 23:25:03 +0100 |
commit | 6e242e82237ad2cf362098f3f42f4a9dd1a4ad27 (patch) | |
tree | 415639ff14183a4914dac69fcc400806cb477525 /lib/tasks/import.rake | |
parent | 4dfe26cd8b6863b7e6c81f5c280cdafe9b6e17b6 (diff) | |
download | gitlab-ce-6e242e82237ad2cf362098f3f42f4a9dd1a4ad27.tar.gz |
Replace old GH importer with the parallel importergithub-importer-refactor
Diffstat (limited to 'lib/tasks/import.rake')
-rw-r--r-- | lib/tasks/import.rake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/tasks/import.rake b/lib/tasks/import.rake index 7f86fd7b45e..8e9aef49e89 100644 --- a/lib/tasks/import.rake +++ b/lib/tasks/import.rake @@ -7,7 +7,7 @@ class GithubImport end def initialize(token, gitlab_username, project_path, extras) - @options = { token: token, verbose: true } + @options = { token: token } @project_path = project_path @current_user = User.find_by_username(gitlab_username) @github_repo = extras.empty? ? nil : extras.first @@ -42,7 +42,9 @@ class GithubImport import_success = false timings = Benchmark.measure do - import_success = Github::Import.new(@project, @options).execute + import_success = Gitlab::GithubImport::SequentialImporter + .new(@project, token: @options[:token]) + .execute end if import_success |