From c81cd7c964257f88e579696d433a90eea242a116 Mon Sep 17 00:00:00 2001 From: mprahl Date: Wed, 22 Nov 2017 15:37:56 -0500 Subject: [PATCH] Support git+https:// git URLs --- module_build_service/scm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module_build_service/scm.py b/module_build_service/scm.py index f7be6f51..cfacace8 100644 --- a/module_build_service/scm.py +++ b/module_build_service/scm.py @@ -62,6 +62,10 @@ class SCM(object): raise Forbidden( '%s is not in the list of allowed SCMs' % url) + # If we are given the option for the git protocol or the http(s) protocol, + # then just use http(s) + if re.match(r'(git\+http(?:s)?:\/\/)', url): + url = url[4:] url = url.rstrip('/') self.url = url