Message ID | a1284b80c48328845d67c2bbc9f45207b71264d3.1639012800.git.anuj.mittal@intel.com |
---|---|
State | Accepted, archived |
Commit | a1284b80c48328845d67c2bbc9f45207b71264d3 |
Headers | show |
Series | [honister,01/33] wic: use shutil.which | expand |
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index a6607b97c6..dbd118123b 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -366,7 +366,7 @@ def supports_srcrev(uri): def reformat_git_uri(uri): '''Convert any http[s]://....git URI into git://...;protocol=http[s]''' checkuri = uri.split(';', 1)[0] - if checkuri.endswith('.git') or '/git/' in checkuri or re.match('https?://github.com/[^/]+/[^/]+/?$', checkuri): + if checkuri.endswith('.git') or '/git/' in checkuri or re.match('https?://git(hub|lab).com/[^/]+/[^/]+/?$', checkuri): # Appends scheme if the scheme is missing if not '://' in uri: uri = 'git://' + uri