diff options
author | Malfurious <m@lfurio.us> | 2022-08-16 14:11:59 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2022-08-16 14:11:59 -0400 |
commit | 63383dd83ac4f5dfada4ffd716f6ffcdb852638d (patch) | |
tree | 93d3ca823492a38c1e23ab33f53970f66c7742db | |
parent | 41277398778f53584fd6277af6e71da06e307c42 (diff) | |
download | srcnode-63383dd83ac4f5dfada4ffd716f6ffcdb852638d.tar.gz srcnode-63383dd83ac4f5dfada4ffd716f6ffcdb852638d.zip |
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 <m@lfurio.us>
-rw-r--r-- | docker/cgitrc | 2 |
1 files changed, 1 insertions, 1 deletions
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 |