]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
buildhistory.bbclass: Do not create annotated tags if tag.gpgSign is set
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Mon, 17 Mar 2025 17:13:03 +0000 (18:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Mar 2025 12:09:04 +0000 (12:09 +0000)
If tag.gpgSign is configured in Git's configuration, then creating the
build-minus-X tags will fail (if Git's core.editor is not configured) or
it will hang (when trying to open the editor). This is beacause
tag.gpgSign causes git tag to create annotated tags. To avoid this,
specify --no-sign as argument to git tag.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildhistory.bbclass

index d735dd5fb5dad1e51bbde05661c349c2f63e0242..fc8b7a9fa45de8b0e04cb52540c3f0d734d84e2d 100644 (file)
@@ -861,9 +861,9 @@ END
                if [ ! -e .git ] ; then
                        git init -q
                else
-                       git tag -f ${BUILDHISTORY_TAG}-minus-3 ${BUILDHISTORY_TAG}-minus-2 > /dev/null 2>&1 || true
-                       git tag -f ${BUILDHISTORY_TAG}-minus-2 ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true
-                       git tag -f ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true
+                       git tag -f --no-sign ${BUILDHISTORY_TAG}-minus-3 ${BUILDHISTORY_TAG}-minus-2 > /dev/null 2>&1 || true
+                       git tag -f --no-sign ${BUILDHISTORY_TAG}-minus-2 ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true
+                       git tag -f --no-sign ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true
                fi
 
                check_git_config