diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-29 13:34:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-30 18:56:47 +0100 |
commit | dc53fe75cc5ec5f6f2b7e297155fe5778fa46889 (patch) | |
tree | 490beafd02cfafb96fd3bb4cd71c0118a8a56b78 /scripts/lib/recipetool/create.py | |
parent | ddcf16d1f792153f7f7fec4b1dcbc11855b64208 (diff) | |
download | poky-dc53fe75cc5ec5f6f2b7e297155fe5778fa46889.tar.gz |
meta/scripts: Manual git url branch additions
Following the scripted conversion adding branches to git://
SRC_URI entries, add the remaining references, mainly in the selftests
and recipetool.
(From OE-Core rev: 5340c0d688036c1be6c938f05d8a8c1e3b49ec38)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/recipetool/create.py')
-rw-r--r-- | scripts/lib/recipetool/create.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index 5a267fb57c..b6c4564761 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -389,6 +389,9 @@ def reformat_git_uri(uri): | |||
389 | parms.update({('protocol', 'ssh')}) | 389 | parms.update({('protocol', 'ssh')}) |
390 | elif (scheme == "http" or scheme == 'https' or scheme == 'ssh') and not ('protocol' in parms): | 390 | elif (scheme == "http" or scheme == 'https' or scheme == 'ssh') and not ('protocol' in parms): |
391 | parms.update({('protocol', scheme)}) | 391 | parms.update({('protocol', scheme)}) |
392 | # We assume 'master' branch if not set | ||
393 | if not 'branch' in parms: | ||
394 | parms.update({('branch', 'master')}) | ||
392 | # Always append 'git://' | 395 | # Always append 'git://' |
393 | fUrl = bb.fetch2.encodeurl(('git', host, path, user, pswd, parms)) | 396 | fUrl = bb.fetch2.encodeurl(('git', host, path, user, pswd, parms)) |
394 | return fUrl | 397 | return fUrl |