From bfc529bbd7b40f43f7069b6459ace61323faee4f Mon Sep 17 00:00:00 2001 From: Douglas Barbosa Alexandre Date: Mon, 7 Aug 2017 14:21:21 -0300 Subject: [PATCH] Add explanation why we should return early for GitHub importer --- app/services/projects/import_service.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/services/projects/import_service.rb b/app/services/projects/import_service.rb index cd661166c3b..c3bf0031409 100644 --- a/app/services/projects/import_service.rb +++ b/app/services/projects/import_service.rb @@ -34,6 +34,8 @@ module Projects def import_repository raise Error, 'Blocked import URL.' if Gitlab::UrlBlocker.blocked_url?(project.import_url) + # We should return early for a GitHub import because the new GitHub + # importer fetch the project repositories for us. return if project.github_import? begin