All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/8] Fix gitsm LFS support
@ 2025-04-25 14:41 Philip Lorenz
  2025-04-25 14:41 ` [PATCH v3 1/8] fetch2: Clean up no longer used name parameter Philip Lorenz
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Philip Lorenz @ 2025-04-25 14:41 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Philip Lorenz, mathieu.dubois-briand, richard.purdie

This patch series fixes a number of issues we observed when using the
gitsm fetcher in conjunction with git-lfs.

I'd like to highlight two patches in this series:
* 0004-fetch2-Simplify-git-LFS-detection: I could not come up with a
  good reason on why the code so far preferred the content of
 `.gitattributes` on the repository's branch instead of always
  considering the state of the target revision. Please let me know
  if there's something I didn't take into account.
* 0005-fetch2-Use-git-lfs-fetch-to-download-objects.patch: I could not
  replicate the `git-lfs fetch` behaviour in versions going back to
  2.13.2 released in 2021. This leads me to believe that the issue
  leading to this workaround is no longer in place. However, if anyone
  remembers the actual issue / versions involved I can also retest to
  confirm that there are no regression.

---
V1 -> V2:
* The correct parameter is now passed for each submodule URL when LFS is
  explicitly disabled
* Smudging for submodules is now skipped when LFS is explcitly disabled.
  This ensures consistent behaviour in setups where git-lfs is installed
  but should not be used.
* Test cases are extended to test the LFS disabled state.
* Explicitly install git lfs into submodule in the test cases to make
  sure that git-lfs is actually used for storing the files.

V2 -> V3:
* Only check for git-lfs existence after confirming whether it is really
  neded

Philip Lorenz (8):
  fetch2: Clean up no longer used name parameter
  tests/fetch: Move commonly used imports to top
  fetch2: Check for git-lfs existence before using it
  fetch2: Simplify git LFS detection
  fetch2: Use git-lfs fetch to download objects
  fetch2: Fix incorrect lfs parametrization for submodules
  fetch2: Fix LFS object checkout in submodules
  tests/fetch: Test gitsm with LFS

 lib/bb/fetch2/git.py   |  69 +++++---------
 lib/bb/fetch2/gitsm.py |  13 ++-
 lib/bb/tests/fetch.py  | 202 +++++++++++++++++++++++++++++++----------
 3 files changed, 182 insertions(+), 102 deletions(-)



^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2025-04-29  6:12 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-25 14:41 [PATCH v3 0/8] Fix gitsm LFS support Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 1/8] fetch2: Clean up no longer used name parameter Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 2/8] tests/fetch: Move commonly used imports to top Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 3/8] fetch2: Check for git-lfs existence before using it Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 4/8] fetch2: Simplify git LFS detection Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 5/8] fetch2: Use git-lfs fetch to download objects Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 6/8] fetch2: Fix incorrect lfs parametrization for submodules Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 7/8] fetch2: Fix LFS object checkout in submodules Philip Lorenz
2025-04-25 14:41 ` [PATCH v3 8/8] tests/fetch: Test gitsm with LFS Philip Lorenz
2025-04-28 16:25 ` [PATCH v3 0/8] Fix gitsm LFS support Mathieu Dubois-Briand
2025-04-28 21:09   ` Richard Purdie
2025-04-29  6:12     ` Philip Lorenz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.