summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/lib/recipetool/create.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 838c23ba9b..a08352ee25 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -324,7 +324,7 @@ def supports_srcrev(uri):
324def reformat_git_uri(uri): 324def reformat_git_uri(uri):
325 '''Convert any http[s]://....git URI into git://...;protocol=http[s]''' 325 '''Convert any http[s]://....git URI into git://...;protocol=http[s]'''
326 checkuri = uri.split(';', 1)[0] 326 checkuri = uri.split(';', 1)[0]
327 if checkuri.endswith('.git') or '/git/' in checkuri or re.match('https?://github.com/[^/]+/[^/]+/?', checkuri): 327 if checkuri.endswith('.git') or '/git/' in checkuri or re.match('https?://github.com/[^/]+/[^/]+/?$', checkuri):
328 res = re.match('(https?)://([^;]+(\.git)?)(;.*)?$', uri) 328 res = re.match('(https?)://([^;]+(\.git)?)(;.*)?$', uri)
329 if res: 329 if res:
330 # Need to switch the URI around so that the git fetcher is used 330 # Need to switch the URI around so that the git fetcher is used