Add explanation why we should return early for GitHub importer

This commit is contained in:
Douglas Barbosa Alexandre 2017-08-07 14:21:21 -03:00
parent e198eea90f
commit bfc529bbd7
1 changed files with 2 additions and 0 deletions

View File

@ -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