diff options
author | Christopher Larson <kergoth@gmail.com> | 2017-05-13 02:46:33 +0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-02 13:36:57 +0100 |
commit | 35ecff3cf077bd22cf7d0a6145732cdcc34f15dc (patch) | |
tree | 14705c24efa0926d8ba6ccc2123c9fb2244e4345 /scripts/lib/devtool/deploy.py | |
parent | 30485b2b1a3d49e0a72c9370e2ca2e763d83ace6 (diff) | |
download | poky-35ecff3cf077bd22cf7d0a6145732cdcc34f15dc.tar.gz |
bitbake: fetch/git: add support for removing arbitrary revs for shallow
In certain cases, it's valuable to be able to exert more control over what
history is removed, beyond srcrev+depth. As one example, you can remove most
of the upstream kernel history from a kernel repository, keeping predominently
the non-publically-accessible content. If the repository is private, the
history in that repo couldn't be restored via `git fetch --unshallow`, but
upstream history could be.
Example usage:
# Remove only these revs, not at a particular depth
BB_GIT_SHALLOW_DEPTH_pn-linux-foo = "0"
BB_GIT_SHALLOW_REVS_pn-linux-foo = "v4.1"
(Bitbake rev: 97f856f0455d014ea34c28b1c25f09e13cdc851b)
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/devtool/deploy.py')
0 files changed, 0 insertions, 0 deletions