Support git+https:// git URLs

This commit is contained in:
mprahl
2017-11-22 15:37:56 -05:00
parent a1fd9daa73
commit c81cd7c964

View File

@@ -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