From 86d25f0da9d4dafa57f3ea96b7b9838bae483545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= <ablocorrea@hotmail.com> Date: Mon, 14 Oct 2024 14:23:17 +0200 Subject: [PATCH] mrhlpr: add support for GNOME SSH origin (MR 54) GNOME's SSH endpoints areof the form git@ssh.gitlab.gnome.org:GNOME/Incubator/papers.git and without this patch, the host could not be found --- mrhlpr/gitlab.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrhlpr/gitlab.py b/mrhlpr/gitlab.py index dd0b3a1..d557784 100644 --- a/mrhlpr/gitlab.py +++ b/mrhlpr/gitlab.py @@ -146,7 +146,7 @@ def parse_git_origin() -> GitLabOrigin: ] for domain in domains: prefixes = [ - r"^git@" + domain.replace(".", "\\.") + ":", + r"^git@(ssh\.)?" + domain.replace(".", "\\.") + ":", r"^https:\/\/(?:[^\s\@\/]*@)?" + domain.replace(".", "\\.") + "\\/", ] host = None -- GitLab