]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 24 Nov 2015 15:49:16 +0000 (15:49 +0000)
commitf533c1bf4c6edbecc67f9e2c62fd475d64668e86
tree545ea7dc5c0e338ef17dcbb57294ea33b22d814d
parent6daf138822bbbc46960121d3b76b42eaf19e7c0e
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].

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