summaryrefslogtreecommitdiff
path: root/lib/gitlab/github_import/importer/pull_requests_importer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/github_import/importer/pull_requests_importer.rb')
-rw-r--r--lib/gitlab/github_import/importer/pull_requests_importer.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/gitlab/github_import/importer/pull_requests_importer.rb b/lib/gitlab/github_import/importer/pull_requests_importer.rb
index 7f1569f592f..28cd3f802a2 100644
--- a/lib/gitlab/github_import/importer/pull_requests_importer.rb
+++ b/lib/gitlab/github_import/importer/pull_requests_importer.rb
@@ -36,7 +36,11 @@ module Gitlab
# updating the timestamp.
project.update_column(:last_repository_updated_at, Time.zone.now)
- project.repository.fetch_remote('github', forced: false)
+ if Feature.enabled?(:fetch_remote_params, project, default_enabled: :yaml)
+ project.repository.fetch_remote('github', url: project.import_url, refmap: Gitlab::GithubImport.refmap, forced: false)
+ else
+ project.repository.fetch_remote('github', forced: false)
+ end
pname = project.path_with_namespace