doc: bitbake-user-manual: add branch parameter to git SRC_URI examples
PATCH 1/2 doc: bitbake-user-manual: add branch parameter to git SRC_URI examples
This parameter is now required by the git fetcher module
--- doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | 8 ++++---- .../bitbake-user-manual-ref-variables.rst | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +4 -4
@@ -405,7 +405,7 @@ This fetcher supports the following parameters: ``[email protected]:mesa/mesa.git``, however the expected URL in :term:`SRC_URI` is the following:: - SRC_URI = "git://[email protected]/mesa/mesa.git;protocol=ssh;..." + SRC_URI = "git://[email protected]/mesa/mesa.git;branch=master;protocol=ssh;..." Note the ``:`` character changed for a ``/`` before the path to the project.
@@ -457,9 +457,9 @@ This fetcher supports the following parameters: Here are some example URLs:: - SRC_URI = "git://git.oe.handhelds.org/git/vip.git;tag=version-1" - SRC_URI = "git://git.oe.handhelds.org/git/vip.git;protocol=http" - SRC_URI = "git://[email protected]/mesa/mesa.git;protocol=ssh;..." + SRC_URI = "git://git.oe.handhelds.org/git/vip.git;branch=master;tag=version-1" + SRC_URI = "git://git.oe.handhelds.org/git/vip.git;branch=master;protocol=http" + SRC_URI = "git://[email protected]/mesa/mesa.git;branch=master;protocol=ssh;..." .. note::
doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +2 -2
@@ -1413,8 +1413,8 @@ overview of their function and contents. :term:`SRC_URI` checksums or :term:`SRCREV` when you have more than one file or git repository specified in :term:`SRC_URI`. For example:: - SRC_URI = "git://example.com/foo.git;name=first \ - git://example.com/bar.git;name=second \ + SRC_URI = "git://example.com/foo.git;branch=master;name=first \ + git://example.com/bar.git;branch=master;name=second \ http://example.com/file.tar.gz;name=third" SRCREV_first = "f1d2d2f924e986ac86fdf7b36c94bcdf32beec15"
Signature · 1 line
2.25.1
PATCH 2/2 doc: bitbake-user-manual: branch parameter now mandatory in git SRC_URIs
--- doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +2 -2
@@ -432,8 +432,8 @@ This fetcher supports the following parameters: raw Git metadata is provided. This parameter implies the "nocheckout" parameter as well. -- *"branch":* The branch(es) of the Git tree to clone. If unset, this - is assumed to be "master". The number of branch parameters much match +- *"branch":* The branch(es) of the Git tree to clone. This is a + mandatory parameter. The number of branch parameters must match the number of name parameters. - *"rev":* The revision to use for the checkout. The default is
Signature · 1 line
2.25.1
RE: [docs] [PATCH 2/2] doc: bitbake-user-manual: branch parameter now mandatory in git SRC_URIs
Quoted 21 lines
-----Original Message-----
From: [email protected] <[email protected]> On Behalf Of Michael Opdenacker via lists.yoctoproject.org
Sent: den 9 mars 2022 18:53
To: [email protected]
Cc: [email protected]; Michael Opdenacker <[email protected]>
Subject: [docs] [PATCH 2/2] doc: bitbake-user-manual: branch parameter now mandatory in gitSRC_URIsSigned-off-by Michael Opdenacker <[email protected]>--- doc/bitbake-user-manual/bitbake-user-manual-fetching.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +0
-0
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst This fetcher supports the following parameters: · line 437
Quoted 8 lines
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +2
-2@@ -432,8 +432,8 @@ This fetcher supports the following parameters: raw Git metadata is provided. This parameter implies the "nocheckout" parameter as well. -- *"branch":* The branch(es) of the Git tree to clone. If unset, this - is assumed to be "master". The number of branch parameters much match +- *"branch":* The branch(es) of the Git tree to clone. This is a + mandatory parameter. The number of branch parameters must match the number of name parameters.
Note that it is either branch=... or nobranch=1 that is mandatory.
Quoted 4 lines
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +0
-1- *"rev":* The revision to use for the checkout. The default is --2.25.1
//Peter
Re: [docs] [PATCH 2/2] doc: bitbake-user-manual: branch parameter now mandatory in git SRC_URIs
Hi Peter,
Quoted 10 lines · Peter Kjellerstedt
Quoted 10 lines
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +0
-0@@ -432,8 +432,8 @@ This fetcher supports the following parameters: raw Git metadata is provided. This parameter implies the "nocheckout" parameter as well.
Quoted 6 lines
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst This fetcher supports the following parameters: · line 437
Quoted 5 lines
doc/bitbake-user-manual/bitbake-user-manual-fetching.rst +2
-2-- *"branch":* The branch(es) of the Git tree to clone. If unset, this - is assumed to be "master". The number of branch parameters much match +- *"branch":* The branch(es) of the Git tree to clone. This is a + mandatory parameter. The number of branch parameters must match the number of name parameters.Note that it is either branch=... or nobranch=1 that is mandatory.
Oops, indeed. Thanks for the correction.
Sending a V2 right now...
Thanks again
Michael.
Signature · 3 lines
Michael Opdenacker, Bootlin Embedded Linux and Kernel engineering https://bootlin.com