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 12:11:31 +0000 |
commit | c8d4807bd722738cbe4d157568a76ab62aae6480 (patch) | |
tree | 0b12f7c1ffcd6c060db647e95ea4467552a94158 /meta | |
parent | fcc5f6883c5913d85a98349411ea394045e1f52d (diff) | |
download | poky-c8d4807bd722738cbe4d157568a76ab62aae6480.tar.gz |
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.
(From OE-Core rev: abf3e7f7f56cc8bcdf104d8e27e7e366b0619ed6)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 06d3510ddc..ba20914f45 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -356,7 +356,8 @@ buildhistory_commit() { | |||
356 | repostatus=`git status --porcelain` | 356 | repostatus=`git status --porcelain` |
357 | if [ "$repostatus" != "" ] ; then | 357 | if [ "$repostatus" != "" ] ; then |
358 | git add ${BUILDHISTORY_DIR}/* | 358 | git add ${BUILDHISTORY_DIR}/* |
359 | git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} for machine ${MACHINE} configured for ${DISTRO} ${DISTRO_VERSION}" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null | 359 | HOSTNAME=`cat /etc/hostname 2>/dev/null || echo unknown` |
360 | git commit ${BUILDHISTORY_DIR}/ -m "Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null | ||
360 | if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then | 361 | if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then |
361 | git push -q ${BUILDHISTORY_PUSH_REPO} | 362 | git push -q ${BUILDHISTORY_PUSH_REPO} |
362 | fi | 363 | fi |