Skip to contentSkip to conversation

gitsm: pass lfs parameter from main repo to all its submodules

PATCH Martin Jansa 1 participant 1 message Oct 17, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

This might need a bit more work, it seemed to work, but then I still got the same failure on different host

First I was assuming it was just stale tarball in PREMIRROR, but even after cleaning that I didn't get it to work.

Luckily for vulkan-samples we can get away with just explicitly disabling LFS, so this change isn't needed.

On the other hand vulkan-samples with lfs=0 changed to lfs=1 is good oe-core reproducer for this smudge issue in submodule.

Quoted 39 lines · Martin Jansa via lists.openembedded.org

* it might not be ideal in some cases where we might require LFS objects only in some of the submodules, but still better than no way to set lfs for submodules which causes git smudge issues in e.g. vulkan-samples when LFS is enabled in gitconfig

[YOCTO #14938]

---
 lib/bb/fetch2/gitsm.py | 1 +
 1 file changed, 1 insertion(+)
lib/bb/fetch2/gitsm.py +1 -1
index 25d5db0e..36f0464c 100644
@@ -122,6 +122,7 @@ class GitSM(Git):
             url += ';protocol=%s' % proto
             url += ";name=%s" % module
             url += ";subpath=%s" % module
+            url += ";lfs=%s" % ud.parm.get("lfs", "1")
 
             ld = d.createCopy()
             # Not necessary to set SRC_URI, since we're passing the URI to
--

2.38.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#14037):
https://lists.openembedded.org/g/bitbake-devel/message/14037
Mute This Topic: https://lists.openembedded.org/mt/94383851/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/bitbake-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-