diff options
author | Peter Kjellerstedt <peter.kjellerstedt@axis.com> | 2025-03-17 18:13:03 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-03-19 12:09:06 +0000 |
commit | 58deeacb07a00a9e7975d204b1ecd46c348b9eec (patch) | |
tree | 08bd55282554fa75701e60c6dfd254b9bb66b8f5 /meta/classes | |
parent | 9fda20fc1c65109534a3a410f632055daa9e0798 (diff) | |
download | poky-58deeacb07a00a9e7975d204b1ecd46c348b9eec.tar.gz |
buildhistory.bbclass: Do not create annotated tags if tag.gpgSign is set
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.
(From OE-Core rev: 7595a0a63a933af9dd9d1e458dc34a4ba80d9eae)
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index d735dd5fb5..fc8b7a9fa4 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -861,9 +861,9 @@ END | |||
861 | if [ ! -e .git ] ; then | 861 | if [ ! -e .git ] ; then |
862 | git init -q | 862 | git init -q |
863 | else | 863 | else |
864 | git tag -f ${BUILDHISTORY_TAG}-minus-3 ${BUILDHISTORY_TAG}-minus-2 > /dev/null 2>&1 || true | 864 | git tag -f --no-sign ${BUILDHISTORY_TAG}-minus-3 ${BUILDHISTORY_TAG}-minus-2 > /dev/null 2>&1 || true |
865 | git tag -f ${BUILDHISTORY_TAG}-minus-2 ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true | 865 | git tag -f --no-sign ${BUILDHISTORY_TAG}-minus-2 ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true |
866 | git tag -f ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true | 866 | git tag -f --no-sign ${BUILDHISTORY_TAG}-minus-1 > /dev/null 2>&1 || true |
867 | fi | 867 | fi |
868 | 868 | ||
869 | check_git_config | 869 | check_git_config |