diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-01-05 17:24:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-06 11:27:26 +0000 |
commit | abf3e7f7f56cc8bcdf104d8e27e7e366b0619ed6 (patch) | |
tree | 0f8f11c844dab4a5431fb108e877319e6ec1f90c /meta | |
parent | 5e5cbb9bd8cdce402b979680288ac8c51799a24d (diff) | |
download | openembedded-core-abf3e7f7f56cc8bcdf104d8e27e7e366b0619ed6.tar.gz openembedded-core-abf3e7f7f56cc8bcdf104d8e27e7e366b0619ed6.tar.bz2 openembedded-core-abf3e7f7f56cc8bcdf104d8e27e7e366b0619ed6.tar.xz openembedded-core-abf3e7f7f56cc8bcdf104d8e27e7e366b0619ed6.zip |
classes/buildhistory: add hostname to commit message
If we're building on multiple hosts then it's useful to have the
hostname in the commit message.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 06d3510dd..ba20914f4 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -356,7 +356,8 @@ buildhistory_commit() { repostatus=`git status --porcelain` if [ "$repostatus" != "" ] ; then git add ${BUILDHISTORY_DIR}/* - git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} for machine ${MACHINE} configured for ${DISTRO} ${DISTRO_VERSION}" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null + HOSTNAME=`cat /etc/hostname 2>/dev/null || echo unknown` + git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then git push -q ${BUILDHISTORY_PUSH_REPO} fi |