diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-29 13:34:24 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-11-21 11:40:35 +0000 |
commit | ab13c838e4fd97b1e4ddba3828b290c4098a97f6 (patch) | |
tree | 31d9541ba0a581f3c811587e5d5944404e387791 /scripts/lib/recipetool/create.py | |
parent | d64469d524cac772f1f0a24ba75f69ef636e2aeb (diff) | |
download | poky-ab13c838e4fd97b1e4ddba3828b290c4098a97f6.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: 87ac0c0a643cca436784dfcd86472adcf2e04130)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5340c0d688036c1be6c938f05d8a8c1e3b49ec38)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
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 566c75369a..116bdfd697 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 |