Commit fcb06ceb authored by Patrick Steinhardt's avatar Patrick Steinhardt

github_import: Fix reference to removed `remote_name` parameter

We have recently removed support for the `remote_name` parameter, but
the GitHub importer was still referring to it in one location. Fix this
by removing the parameter.
parent da2bb775
...@@ -50,7 +50,7 @@ module Gitlab ...@@ -50,7 +50,7 @@ module Gitlab
project.ensure_repository project.ensure_repository
refmap = Gitlab::GithubImport.refmap refmap = Gitlab::GithubImport.refmap
project.repository.fetch_as_mirror(project.import_url, refmap: refmap, forced: true, remote_name: 'github') project.repository.fetch_as_mirror(project.import_url, refmap: refmap, forced: true)
project.change_head(default_branch) if default_branch project.change_head(default_branch) if default_branch
......
...@@ -202,7 +202,7 @@ RSpec.describe Gitlab::GithubImport::Importer::RepositoryImporter do ...@@ -202,7 +202,7 @@ RSpec.describe Gitlab::GithubImport::Importer::RepositoryImporter do
expect(repository) expect(repository)
.to receive(:fetch_as_mirror) .to receive(:fetch_as_mirror)
.with(project.import_url, refmap: Gitlab::GithubImport.refmap, forced: true, remote_name: 'github') .with(project.import_url, refmap: Gitlab::GithubImport.refmap, forced: true)
service = double service = double
expect(Repositories::HousekeepingService) expect(Repositories::HousekeepingService)
......
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