Add explanation why we should return early for GitHub importer
This commit is contained in:
parent
e198eea90f
commit
bfc529bbd7
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue