Skip to content

Support scp-style URLs in pull and push mirroring

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The following discussion from gitlab-ee!2551 should be addressed:

  • @DouweM started a discussion: (+4 comments)

    How hard would it be to support the git@gitlab.com:gitlab-org/gitlab-ee.git syntax too? I think that if we don't support that, we'll get a lot of support requests about "invalid URL" errors :)

We can transform the URL to be well-formed in the frontend or backend and store as ssh://..., or we can accept scp-style URLs and store them as-is.

The URLs end up being written to a .git/config file as we set up a remote for each mirror, so either approach would work.

Currently, attempts to use scp-style URLs give a 500 error and an exception message like: Addressable::URI::InvalidURIError: Invalid port number

Edited by 🤖 GitLab Bot 🤖