<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 18, 2015 at 1:45 AM, Martin Jansa <span dir="ltr"><<a href="mailto:martin.jansa@gmail.com" target="_blank">martin.jansa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb adM"><div class="">On Fri, Aug 14, 2015 at 08:57:17AM -0700, Christopher Larson wrote:<br>
> On Thu, Aug 13, 2015 at 4:46 PM, Christopher Larson <<a href="mailto:kergoth@gmail.com">kergoth@gmail.com</a>><br>
> wrote:<br>
><br>
> > From: Christopher Larson <<a href="mailto:chris_larson@mentor.com">chris_larson@mentor.com</a>><br>
> ><br>
> > Please review the following changes for suitability for inclusion. If you<br>
> > have<br>
> > any objections or suggestions for improvement, please respond to the<br>
> > patches. If<br>
> > you agree with the changes, please provide your Acked-by.<br>
> ><br>
> > This only implements support for shallow mirror tarballs, not shallow<br>
> > clones.<br>
> ><br>
> > The mirror tarball filename includes branch, revision, and depth. To<br>
> > enable,<br>
> > use the `BB_GIT_SHALLOW` variable, or `BB_GIT_SHALLOW_<name>` for specific<br>
> > URLs. This variable can hold either a clone depth (e.g. `1` to just get<br>
> > SRCREV), or a ref or commit, in which case we keep history up to that<br>
> > commit.<br>
> ><br>
> > The shallow support will not, at this time, function correctly for<br>
> > linux-yocto, due to its branching scheme & validation.<br>
> ><br>
> > Example:<br>
> ><br>
> > BB_GIT_SHALLOW ?= "1"<br>
> > BB_GIT_SHALLOW_pn-linux-yocto = ""<br>
> > BB_GIT_SHALLOW_pn-linux-mel_mx6 = "v3.14"<br>
> > BB_GIT_SHALLOW_pn-testrepo = "testbranch"<br>
> ><br>
> > This implementation will attempt to fetch a full mirror tarball if it was<br>
> > unable to fetch a shallow tarball. If `BB_GIT_SHALLOW` and<br>
> > `BB_GENERATE_MIRROR_TARBALLS` are enabled for a given recipe, a shallow<br>
> > tarball will be emitted.<br>
<br>
</div></div>It would be nice to describe what this implementation does when there is<br>
some local git clone already (will it first try to update it with "git fetch"<br>
or download shallow tarball?)</blockquote></div><br>In that case, I believe it will update the clone and use that, unless we have a current tarball already downloaded, but I'll double check the logic and get back to you.<br>-- <br><div class="gmail_signature"><div dir="ltr">Christopher Larson<br>kergoth at gmail dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div></div>
</div></div>