From: Koen Kooi Date: Sat, 31 Mar 2012 22:06:43 +0000 (+0200) Subject: buildhistory: record all builds X-Git-Tag: 2015-4~11095 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2e40558cc33c5c566a9a742c32eda3ea017f8607;p=openembedded-core.git 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. Signed-off-by: Koen Kooi Signed-off-by: Richard Purdie --- 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 }