From bcd3db5b027d60f8ffbd33e3ed0e4c35ae41cfab Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sun, 1 Apr 2012 00:06:43 +0200 Subject: buildhistory: record all builds When nothing has changed an empty commit prefixed with "No changes" will get generated so that the commit log of the buildhistory repo provides a complete log of all builds performed, not just those that resulted in changes. (From OE-Core rev: 2e40558cc33c5c566a9a742c32eda3ea017f8607) Signed-off-by: Koen Kooi Signed-off-by: Richard Purdie --- meta/classes/buildhistory.bbclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta/classes/buildhistory.bbclass') diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 386c32cc67..2224340728 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -405,6 +405,8 @@ buildhistory_commit() { if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then git push -q ${BUILDHISTORY_PUSH_REPO} fi + else + git commit ${BUILDHISTORY_DIR}/ --allow-empty -m "No changes: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null fi) || true } -- cgit v1.2.3-54-g00ecf