]> code.ossystems Code Review - openembedded-core.git/commitdiff
classes/buildhistory: ensure we push when "no changes" commits are made
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 26 Aug 2015 14:01:45 +0000 (15:01 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 30 Aug 2015 11:34:37 +0000 (12:34 +0100)
If there aren't any changes, we still make a commit to the buildhistory
repo, but this wasn't being pushed if BUILDHISTORY_PUSH_REPO is set.
Move the push to the end to make it unconditional.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/buildhistory.bbclass

index cad5116ed5afe24e15ceb21c9d7d3d7013bf2120..e60cdd72baf62c8137530b4eb766105518d1b171 100644 (file)
@@ -621,11 +621,11 @@ END
                                git commit $entry metadata-revs -m "$entry: Build ${BUILDNAME} of ${DISTRO} ${DISTRO_VERSION} for machine ${MACHINE} on $HOSTNAME" -m "cmd: $CMDLINE" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
                        done
                        git gc --auto --quiet
-                       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" -m "cmd: $CMDLINE" --author "${BUILDHISTORY_COMMIT_AUTHOR}" > /dev/null
+               fi
+               if [ "${BUILDHISTORY_PUSH_REPO}" != "" ] ; then
+                       git push -q ${BUILDHISTORY_PUSH_REPO}
                fi) || true
 }