poky/bitbake/lib
Gyorgy Sarvari 3d451f3452 bitbake: fetch2/git: verify if local clone contains tag
In case a recipe specifies a git SRC_URI along with revision and tag, but only the
revision is present in the local clone without the tag (because it was tagged after
it was cloned), then unpacking fails with the following error:

... rev-list -n 1 1.0 failed with exit code 128, output:\nfatal: ambiguous argument \'1.0\': unknown revision or path not in the working tree

This happens because the during the download step only the revision's presence is
verified to decide if the repository needs to be updated.

To avoid this, check also if the tag is present in the local repository, when the "tag"
tag is specified.

(Bitbake rev: 546b347b4d3d82c01ecc99f45296f66e44638adc)

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-08-19 11:35:52 +01:00
..
bb bitbake: fetch2/git: verify if local clone contains tag 2025-08-19 11:35:52 +01:00
bblayers bitbake: Revert "bblayers/query: Fix using "removeprefix" string method" 2025-03-24 17:29:55 +00:00
bs4 bitbake: lib: Remove double imports 2025-02-27 15:12:55 +00:00
hashserv bitbake: Use a "fork" multiprocessing context 2025-07-23 11:34:31 +01:00
layerindexlib bitbake: layerindexlib: fix missing layer branch backtrace 2024-02-27 11:36:38 +00:00
ply bitbake: lib: Remove double imports 2025-02-27 15:12:55 +00:00
progressbar bitbake: progressbar: Add self._fd_console to use for self._handle_resize() 2025-08-19 11:33:23 +01:00
prserv bitbake: prserv: increment 9 to 10 correctly 2024-09-12 16:17:20 +01:00
simplediff
toaster bitbake: toaster/tests: Fix automated testing failures 2025-06-21 15:35:49 +01:00
codegen.py bitbake: codegen: cleanup deprecated AST usages 2023-11-14 23:39:53 +00:00
pyinotify.py bitbake: pyinotify.py: Simplify identification of which event has occurred 2022-04-14 09:48:33 +01:00