Skip to content
Snippets Groups Projects
Commit 9175e2c2 authored by Pablo Correa Gomez's avatar Pablo Correa Gomez Committed by Newbyte
Browse files

mrhlpr: add support for GNOME SSH origin

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
parent b067a9ff
No related branches found
No related tags found
No related merge requests found
Pipeline #208299 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment