]> code.ossystems Code Review - openembedded-core.git/commit
classes/metadata_scm: fix git errors showing up on non-git repositories
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 9 Nov 2015 14:40:08 +0000 (14:40 +0000)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 28 Dec 2015 07:03:15 +0000 (23:03 -0800)
commit8968ede9c8cdcd2cbf13bd5bba95883082189908
treeb11cbca3d00bf65051f3f6bb864cc980746b4049
parente353b303e271368426e71810bb75173ca6f53455
classes/metadata_scm: fix git errors showing up on non-git repositories

Fixes the following error showing up for layers that aren't a git repo
(or aren't parented by one):

fatal: Not a git repository (or any of the parent directories): .git

This was because we weren't intercepting stderr. We might as well just
use bb.process.run() here which does that and returns stdout and stderr
separately.

(This was a regression that came in with OE-Core revision
3aac11076e22ac4fea48f5404110bb959547a9fe).

Fixes [YOCTO #8661].

(From OE-Core master rev: f533c1bf4c6edbecc67f9e2c62fd475d64668e86)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/metadata_scm.bbclass