diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-29 13:34:24 +0100 |
---|---|---|
committer | Anuj Mittal <anuj.mittal@intel.com> | 2021-11-09 11:28:53 +0800 |
commit | 467aa56b8773e8dd2e8e29936684606d5e291888 (patch) | |
tree | 042c61c3f3ab3f2313d544f626e17b6948218e02 /scripts | |
parent | 37b4f66fa23979cbfe82679a74ce21b11fc61557 (diff) | |
download | openembedded-core-contrib-467aa56b8773e8dd2e8e29936684606d5e291888.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.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 5340c0d688036c1be6c938f05d8a8c1e3b49ec38)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'scripts')
-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 5cd72ea0a7..a6607b97c6 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py @@ -389,6 +389,9 @@ def reformat_git_uri(uri): parms.update({('protocol', 'ssh')}) elif (scheme == "http" or scheme == 'https' or scheme == 'ssh') and not ('protocol' in parms): parms.update({('protocol', scheme)}) + # We assume 'master' branch if not set + if not 'branch' in parms: + parms.update({('branch', 'master')}) # Always append 'git://' fUrl = bb.fetch2.encodeurl(('git', host, path, user, pswd, parms)) return fUrl |