{"push_id":814058459,"size":2,"distinct_size":2,"ref":"refs/heads/git-shallow","head":"97e714c3617f5be3c3f0bde35856ced0ca0ee106","before":"f8b724c75e59ba1761c5105965efc65778f1990f","commits":[{"sha":"774e703bdc577d2dd1d747d8c732025975ce709c","author":{"email":"4c8c411260e601995081b113a5ef94a26eff2b25@mentor.com","name":"Christopher Larson"},"message":"bitbake: fetch: use orig localpath when calling orig method\n\nWhen a mirror tarball is fetched, the original fetch method is called, which\nunpacks the mirror tarball. After the original method is called, it checks the\nlocalpath of the mirror tarball rather than the clone path, which isn't ideal,\nparticularly if the mirror tarball was removed due to being out of date. We\nknow the original fetch method will do what it needs to do to get its content\nin the form it needs from the mirror tarball, so we can use its localpath\ninstead.\n\nSigned-off-by: Christopher Larson <chris_larson@mentor.com>","distinct":true,"url":"https://api.github.com/repos/kergoth/poky/commits/774e703bdc577d2dd1d747d8c732025975ce709c"},{"sha":"97e714c3617f5be3c3f0bde35856ced0ca0ee106","author":{"email":"4c8c411260e601995081b113a5ef94a26eff2b25@mentor.com","name":"Christopher Larson"},"message":"bitbake: fetch/git: add support for shallow mirror tarballs\n\nThe shallow mirror tarball filename includes branch, revision, and depth. To\nenable, use the BB_GIT_SHALLOW variable, or BB_GIT_SHALLOW_<name> for specific\nURLs. This variable can hold either a clone depth (e.g. 1 to just get SRCREV),\nor a ref or commit, in which case we keep history up to that commit.\n\nExample:\n\n    BB_GIT_SHALLOW ?= \"1\"\n    BB_GIT_SHALLOW_pn-linux-yocto = \"\"\n    BB_GIT_SHALLOW_pn-linux-mel_mx6 = \"v3.14\"\n    BB_GIT_SHALLOW_pn-testrepo = \"testbranch\"\n\nExample in a recipe with multiple named uris, or multiple named branches in a\nsingle git URI:\n\n    BB_GIT_SHALLOW_main = \"1\"\n    BB_GIT_SHALLOW_doc = \"\"\n\nBB_GIT_SHALLOW affects the tarball being fetched, and\nBB_GENERATE_SHALLOW_TARBALLS controls the tarball generation, though the\nlatter defaults to enabled if BB_GENERATE_MIRROR_TARBALLS is. If the shallow\nmirror tarball cannot be fetched, it will try to fetch the full mirror tarball\nand use that.\n\nLimitations:\n\nThe shallow support will not, at this time, function correctly for\nlinux-yocto, due to its branching scheme & validation.\n\nThis implements support for shallow mirror tarballs, not shallow clones.\nSupporting shallow clones directly would be rather more problematic, as we'd\nneed to hardcode the depth between branch HEAD and the SRCREV, and that depth\nwould change as the branch is updated.\n\nSigned-off-by: Christopher Larson <chris_larson@mentor.com>","distinct":true,"url":"https://api.github.com/repos/kergoth/poky/commits/97e714c3617f5be3c3f0bde35856ced0ca0ee106"}]}