[bitbake-devel] [PATCH 0/2] fetch2/git: fetch shallow revs when needed

Christopher Larson kergoth at gmail.com
Mon Oct 21 17:09:52 UTC 2019


From: Christopher Larson <chris_larson at mentor.com>

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:

  git at github.com: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(-)

-- 
2.11.1



More information about the bitbake-devel mailing list