From 63383dd83ac4f5dfada4ffd716f6ffcdb852638d Mon Sep 17 00:00:00 2001 From: Malfurious Date: Tue, 16 Aug 2022 14:11:59 -0400 Subject: cgit: Fix ssh clone url Although user@server:path would be the preferred URL form, cgit interprets this as an HTTP link, relative to the repository base URL. That is, even though the desired text appears on screen, the text's link is broken. Someone copying the link, as opposed to copying the text, to use with an actual clone (or git-remote add) will have a bad time. Using a full URL with the ssh:// protocol scheme solves this problem. '.git' is omitted from the end of the path for consistency with the HTTP url (it's use is optional for ssh protocol). Signed-off-by: Malfurious --- docker/cgitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/cgitrc b/docker/cgitrc index 13f0ad2..f53e7a2 100644 --- a/docker/cgitrc +++ b/docker/cgitrc @@ -10,7 +10,7 @@ logo-link=/ root-title=NormalMode.org Repositories root-desc=Public repositories hosted on normalmode.org -clone-url=https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL gitolite@$HTTP_HOST:$CGIT_REPO_URL.git +clone-url=https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL ssh://gitolite@$HTTP_HOST/$CGIT_REPO_URL enable-blame=1 enable-follow-links=1 -- cgit v1.2.3