fetch2/git: fetch shallow revs when needed
cover fetch2/git: fetch shallow revs when needed
From: Christopher Larson <[email protected]>
When bitbake determines if a git clone needs updating, it only checks for the needed srcrevs, not the revs listed in BB_GIT_SHALLOW_REVS, which will fail if using shallow and the needed rev was added to the upstream git repo after a previous fetch. Ensure that we also check for shallow revs.
[YOCTO #13586]
The following changes since commit 5d83d828cacb58ccb7c464e799c85fd2d2a50ccc:
bitbake: Update to version 1.44.0 (2019-10-09 14:10:21 +0100)
are available in the git repository at:
[email protected]:kergoth/bitbake 13586
for you to fetch changes up to 47e7f25073fe14cae3d1c181bb52766adfad59da:
tests/fetch: add test for fetching shallow revs (2019-10-18 23:25:13 +0500)
----------------------------------------------------------------
Christopher Larson (2):
fetch2/git: fetch shallow revs when needed tests/fetch: add test for fetching shallow revs
lib/bb/fetch2/git.py | 23 ++++++++++++++++------- lib/bb/tests/fetch.py | 20 ++++++++++++++++++++ 2 files changed, 36 insertions(+), 7 deletions(-)
Signature · 1 line
2.11.1