Skip to content

Remove repository fork and import code from Gitlab::Shell

What does this MR do?

The RepositoryService.CreateRepositoryFromURL (aka import_repository) GRPC call is used when importing a project from a remote source. Historically, this was functionality we'd ask a subprocess in gitlab-shell to do. Now, Gitaly does it for us instead. The same is true for RepositoryService.ForkRepository.

Refactor the code so we no longer have to indirect via Gitlab::Shell to perform this call. It makes what is happening much clearer, and is a precursor to removing all references to Gitlab::Shell.

Does this MR meet the acceptance criteria?

Conformity

Part of #25095 (closed)

Edited by Nick Thomas

Merge request reports