• Georges Racinet's avatar
    Imports: adapted for GitLab 12.10 · 38a64ea242b6
    Georges Racinet authored
    The main code path for imports is no longer in `Gitlab::Shell`.
    Instead, that functionality is provided by the `Repository` objects,
    themselves called rather directly from `Projects::ImportService`.
    
    We're adopting our existing code in `HgGitRepository`. Because that
    is a repository creation, it means we have to passover the Mercurial
    specific arguments as well, and hence make the pure Git version from
    `Git::Repository` accept them.
    
    Finally, this allows us to remove our band-aid executable and its
    underlying lib (`gitlab_project_hg.rb`).
    
    Of course `ImportService` is itself always called from a Worker.
    38a64ea242b6