]> code.ossystems Code Review - openembedded-core.git/commit
classes/patch: when PATCHTOOL = "git" double-check the repository
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 5 Dec 2017 01:36:58 +0000 (14:36 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 10 Dec 2017 22:41:42 +0000 (22:41 +0000)
commit59ae5b7cbfeedb216a57c3f77fe52527b6c918cc
tree4f0a7ad7a6b3a0cd2880d39538528126cb3378d9
parent5bc987fb1818ffb9748645bd6e0d80cf5914bad0
classes/patch: when PATCHTOOL = "git" double-check the repository

If a bug is present or the user has set PATCHTOOL = "git" on a source
tree that isn't git, if we try to perform git operations (such as
committing or changing branches) when extracting source, then we might
in fact be running those operations on the metadata repository if the
build directory is underneath, say, poky or OE-Core, and that could
make a mess. Check if the source tree is a git repository and refuse
to continue if it isn't.

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