[OE-core] [PATCH] kernel-yocto: Inspect remote branches with git ls-remote

Chris Larson clarson at kergoth.com
Wed Mar 5 19:53:41 UTC 2014


On Wed, Mar 5, 2014 at 10:47 AM, Richard Purdie <
richard.purdie at linuxfoundation.org> wrote:

> On Wed, 2014-03-05 at 16:49 +0000, Matt Fleming wrote:
> > From: Matt Fleming <matt.fleming at intel.com>
> >
> > 'git branch' may use ANSI escape codes in its output (to provide colour)
> > which doesn't play well with commands expecting pure plain text, e.g.
> >
> >     fatal: '^[[31mmaster^[[m' is not a valid branch name.
> >
> > Furthermore, the output of 'git branch' is subject to change and trying
> > to parse it could potentially lead to breakage in the future.
> >
> > Signed-off-by: Matt Fleming <matt.fleming at intel.com>
> > ---
> >  meta/classes/kernel-yocto.bbclass | 10 +++++-----
> >  1 file changed, 5 insertions(+), 5 deletions(-)
>
> My worry with this change is that it will cause the system to hit the
> network. We specifically support builds from archives of the
> repositories so I'd worry about using ls-remote like this :/.


What about git for-each-ref? If we just need a list of refs, that's what
for-each-ref is ideal for.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20140305/a1517a5d/attachment-0002.html>


More information about the Openembedded-core mailing list