diff options
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r-- | scripts/lib/recipetool/create.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 9340c4fb5a..1f85fcf9d5 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -320,7 +320,7 @@ def supports_srcrev(uri): | |||
320 | def reformat_git_uri(uri): | 320 | def reformat_git_uri(uri): |
321 | '''Convert any http[s]://....git URI into git://...;protocol=http[s]''' | 321 | '''Convert any http[s]://....git URI into git://...;protocol=http[s]''' |
322 | checkuri = uri.split(';', 1)[0] | 322 | checkuri = uri.split(';', 1)[0] |
323 | if checkuri.endswith('.git') or '/git/' in checkuri or re.match('https?://github.com/[^/]+/[^/]+/?', checkuri): | 323 | if checkuri.endswith('.git') or '/git/' in checkuri or re.match('https?://github.com/[^/]+/[^/]+/?$', checkuri): |
324 | res = re.match('(https?)://([^;]+(\.git)?)(;.*)?$', uri) | 324 | res = re.match('(https?)://([^;]+(\.git)?)(;.*)?$', uri) |
325 | if res: | 325 | if res: |
326 | # Need to switch the URI around so that the git fetcher is used | 326 | # Need to switch the URI around so that the git fetcher is used |