]> code.ossystems Code Review - openembedded-core.git/commit
devtool: finish: ensure repository is clean before proceeding
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Fri, 29 Sep 2017 03:56:20 +0000 (16:56 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 10 Nov 2017 14:44:31 +0000 (14:44 +0000)
commitbfebd18982c0c82ef2da63ec8f22175c93b2e308
treecda290923a49790e5ce9ff91f040e12547348b2e
parent9e8808099046478e98c6cf1903dc6787d69132fc
devtool: finish: ensure repository is clean before proceeding

If the git repository for a recipe in the workspace has uncommitted
changes in it then it's possible that the user has forgotten to commit
something, so check and exit if there are any. Provide a -f/--force
option to continue in the case where the uncommitted changes aren't
needed.

Separately, if the repository is in the middle of a rebase or git am /
apply then error out (without the opportunity to force) since the user
really needs to sort this out before finishing.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/devtool/__init__.py
scripts/lib/devtool/standard.py