<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 10:47 AM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Wed, 2014-03-05 at 16:49 +0000, Matt Fleming wrote:<br>
> From: Matt Fleming <<a href="mailto:matt.fleming@intel.com">matt.fleming@intel.com</a>><br>
><br>
> 'git branch' may use ANSI escape codes in its output (to provide colour)<br>
> which doesn't play well with commands expecting pure plain text, e.g.<br>
><br>
> fatal: '^[[31mmaster^[[m' is not a valid branch name.<br>
><br>
> Furthermore, the output of 'git branch' is subject to change and trying<br>
> to parse it could potentially lead to breakage in the future.<br>
><br>
> Signed-off-by: Matt Fleming <<a href="mailto:matt.fleming@intel.com">matt.fleming@intel.com</a>><br>
> ---<br>
> meta/classes/kernel-yocto.<span class="il">bbclass</span> | 10 +++++-----<br>
> 1 file changed, 5 insertions(+), 5 deletions(-)<br>
<br>
</div>My worry with this change is that it will cause the system to hit the<br>
network. We specifically support builds from archives of the<br>
repositories so I'd worry about using ls-remote like this :/.</blockquote></div><br></div><div class="gmail_extra">What about git for-each-ref? If we just need a list of refs, that's what for-each-ref is ideal for.<br>
-- <br>Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics
</div></div>