From 13ea18d57e7dff6c8022c112581d4fa524fa3edb Mon Sep 17 00:00:00 2001 From: Jim Schubert Date: Wed, 8 Aug 2018 22:36:31 -0400 Subject: Add clarification points to using SCP style URIs This addresses user-facing documentation related to repository mirroring. On the repositoring mirroring view of repository settings, inputting either git@example.com:group/project.git or any variation of schemes: * https://git@example.com:group/project.git * http://git@example.com:group/project.git * git://git@example.com:group/project.git * ssh://git@example.com:group/project.git Fails on URL validation. This commit adds notes about the required format to the doc and view for repository mirroring. This commit does not attempt to validate the URL. see #47544 --- app/views/projects/mirrors/_instructions.html.haml | 2 ++ doc/workflow/repository_mirroring.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/projects/mirrors/_instructions.html.haml b/app/views/projects/mirrors/_instructions.html.haml index 64f0fde30cf..c74865be3f8 100644 --- a/app/views/projects/mirrors/_instructions.html.haml +++ b/app/views/projects/mirrors/_instructions.html.haml @@ -8,3 +8,5 @@ The update action will time out after 10 minutes. For big repositories, use a clone/push combination. %li The Git LFS objects will not be synced. + %li + SCP-style URLs (git@example.com:group/project.git) must be converted to a URL format of scheme://git@example.com/group/project.git. diff --git a/doc/workflow/repository_mirroring.md b/doc/workflow/repository_mirroring.md index 8c4e6ea8eab..9056fd95ae4 100644 --- a/doc/workflow/repository_mirroring.md +++ b/doc/workflow/repository_mirroring.md @@ -139,6 +139,8 @@ enable mirroring (if not already enabled) and enter an `ssh://` URL. > **NOTE**: SCP-style URLs, e.g., `git@example.com:group/project.git`, are not supported at this time. +> +These URLs must be converted to the format `scheme://git@domain/group/project.git` Entering the URL adds two features to the page - `Fingerprints` and `SSH public key authentication`: -- cgit v1.2.1