<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">&lt;<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>&gt;</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>
&gt; From: Matt Fleming &lt;<a href="mailto:matt.fleming@intel.com">matt.fleming@intel.com</a>&gt;<br>
&gt;<br>
&gt; &#39;git branch&#39; may use ANSI escape codes in its output (to provide colour)<br>
&gt; which doesn&#39;t play well with commands expecting pure plain text, e.g.<br>
&gt;<br>
&gt;     fatal: &#39;^[[31mmaster^[[m&#39; is not a valid branch name.<br>
&gt;<br>
&gt; Furthermore, the output of &#39;git branch&#39; is subject to change and trying<br>
&gt; to parse it could potentially lead to breakage in the future.<br>
&gt;<br>
&gt; Signed-off-by: Matt Fleming &lt;<a href="mailto:matt.fleming@intel.com">matt.fleming@intel.com</a>&gt;<br>
&gt; ---<br>
&gt;  meta/classes/kernel-yocto.<span class="il">bbclass</span> | 10 +++++-----<br>
&gt;  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&#39;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&#39;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>