summaryrefslogtreecommitdiffstats
path: root/scripts/lib/scriptutils.py
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-08-15 21:44:01 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-08-19 11:35:52 +0100
commit3d451f3452643a6fcaa7ff9345a6f955392daec3 (patch)
treeb833abc48bb9b3f27c30a5f8b6440b244396ec69 /scripts/lib/scriptutils.py
parent2f808c92cc8d09a42e66f522c6c3f798cabf52d3 (diff)
downloadpoky-3d451f3452643a6fcaa7ff9345a6f955392daec3.tar.gz
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>
Diffstat (limited to 'scripts/lib/scriptutils.py')
0 files changed, 0 insertions, 0 deletions