]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
classes/patch: when PATCHTOOL = "git" double-check the repository paule/patch-fixes
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 4 Sep 2017 23:10:46 +0000 (11:10 +1200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 5 Dec 2017 01:36:11 +0000 (14:36 +1300)
commitea98050caef43c9b771ba3e243fbecb55dc130e3
treec516f33b237df69d75db468e64148c82aef35453
parent8c94a9aaacf214108a395e0619fad3cdf894da07
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>
meta/classes/patch.bbclass