mbox

[v2,0/2] fetch2/git: Use git shallow fetch to implement clone_shallow_local()

Message ID cover.1720336551.git.liezhi.yang@windriver.com
State Not Applicable, archived
Headers show

Pull-request

https://github.com/robertlinux/yocto rbt/shallow

Message

Robert Yang July 7, 2024, 7:20 a.m. UTC
From: Robert Yang <liezhi.yang@windriver.com>

* V2:
  - Fix bitbake-selftest on ubuntu 20.04 (git version: 2.25.1)

    # Advertise the revision for lower version git such as 2.25.1:
    # error: Server does not allow request for unadvertised object.
    # The ud.clonedir is a local temporary dir, will be removed when
    # fetch is done, so we can do anything on it.
    adv_cmd = 'git branch -f advertise-%s %s' % (revision, revision)
    runfetchcmd(adv_cmd, d, workdir=ud.clonedir) 

* V1:
  bitbake-selftest works well
  bitbake world works well with the shallow tarballs

// Robert

The following changes since commit 0979646a1bd224e3690380ab9fb3e0079bcafcf4:

  abi_version/package: Bump hashequiv version and package class version (2024-07-05 10:23:05 +0100)

are available in the Git repository at:

  https://github.com/robertlinux/yocto rbt/shallow
  https://github.com/robertlinux/yocto/tree/rbt/shallow

Robert Yang (2):
  fetch2/git: Use git shallow fetch to implement clone_shallow_local()
  bitbake: tests/fetch: Update GitShallowTest for clone_shallow_local()

 bitbake/lib/bb/fetch2/git.py  | 78 +++++++++++++++++++++++------------
 bitbake/lib/bb/tests/fetch.py | 13 +++---
 2 files changed, 60 insertions(+), 31 deletions(-)