Setting up mirroring without import gives a unexpected error message

Trying to setup mirroring over ssh on the settings page of a new repo I get the following result error message:

Error importing repository ssh://github.com/<ORG>/<REPO>.git into <GITLAB ORG>/<GITLAB REPO> - Blocked import URL: Only allowed schemes are http, https, git

Is SSH no longer supported? It is listed in the documentation still?

Turns out that in the end, it is supported but you need an imported repository first. Since we only have access over SSH to this repo we first did:

git clone --bare git@github.com:ORG/REPO.git
cd REPO.git
git push --mirror git@gitlab.com:ORG/REPO.git

And then setup the mirroring. It then worked successfully.

I did expect a different error message in the mirror setup for this. Maybe a warning if the repository is not imported yet while you try to setup a mirror?

Edited by 🤖 GitLab Bot 🤖