diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2022-11-09 02:11:25 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-11-14 16:22:00 +0000 |
commit | 80e70e669fa699452c98bed26d516692b222fcd5 (patch) | |
tree | 4e451b66ce369178f54cd75848d5b826c77eea62 /bitbake/lib/bb/fetch2 | |
parent | 1345caff4470b86d0df140ea2ad67f75288fafbb (diff) | |
download | poky-80e70e669fa699452c98bed26d516692b222fcd5.tar.gz |
bitbake: gitsm.py: process_submodules(): Set nobranch=1 for url
Just like download_submodule() does, fixed warings when run
bb.fetch2.Fetch([url], d) in process_submodules' function:
WARNING: grpc-native-1.50.0-r0 do_fetch: URL: gitsm://github.com/abseil/abseil-cpp.git;protocol=https;name=third_party/abseil-cpp;subpath=third_party/abseil-cpp does not set any branch parameter. The future default branch used by tools and repositories is uncertain and we will therefore soon require this is set in all git urls.
(Bitbake rev: 0ed7c75eb0508a1f699f47d7f22d559501865f61)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index c5f7c03c4c..fee40cdcb4 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
@@ -122,6 +122,7 @@ class GitSM(Git): | |||
122 | url += ';protocol=%s' % proto | 122 | url += ';protocol=%s' % proto |
123 | url += ";name=%s" % module | 123 | url += ";name=%s" % module |
124 | url += ";subpath=%s" % module | 124 | url += ";subpath=%s" % module |
125 | url += ";nobranch=1" | ||
125 | 126 | ||
126 | ld = d.createCopy() | 127 | ld = d.createCopy() |
127 | # Not necessary to set SRC_URI, since we're passing the URI to | 128 | # Not necessary to set SRC_URI, since we're passing the URI to |