diff options
author | Ross Burton <ross@burtonini.com> | 2021-12-01 15:42:31 +0000 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-12-10 12:28:10 +0800 |
commit | 7cc06b578612e4965add12181d76dadc81a9e873 (patch) | |
tree | b180f6a43ba0d505c62dcd6f2b0c38ecb23b2295 /scripts | |
parent | 6f10148ab4654484f9897f498f2bde140b9ef7c8 (diff) | |
download | openembedded-core-contrib-7cc06b578612e4965add12181d76dadc81a9e873.tar.gz |
recipetool: handle GitLab URLs like we do GitHub
GitHub URLs are automatically transformed to git: fetches, so handle
GitLab URLs too.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 651fb951819840fe122458ddbd852ee6c7ec0455)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'scripts')
-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 116bdfd697..5752db5c2e 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 |