]> code.ossystems Code Review - openembedded-core.git/commit
buildhistory: improve git commit robustness
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 30 Dec 2011 13:08:01 +0000 (13:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 3 Jan 2012 12:10:49 +0000 (12:10 +0000)
commit8eff4fea13317a741114f2a2e8e228d0155ba64c
treeba7b9312bd11eb305d8a4f3908aa6a4fec689740
parent22213b226d7f9b7732163d6586d938416c7ec8c3
buildhistory: improve git commit robustness

* Check if BUILDHISTORY_DIR exists before doing anything with it, in
  case no tasks that would have created it have executed
* Ensure the git repo in BUILDHISTORY_DIR is initialised with "git init"
  before attempting to do anything with it
* Check if any files have been added or changed before adding and
  committing, to avoid an error from "git commit"

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