summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Lorenz <philip.lorenz@bmw.de>2025-04-29 10:11:22 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-05-08 11:37:32 +0100
commiteb6d89e9e6f27b683da6f2ba2227707a965a0094 (patch)
tree80bd0e718fb983ab5b99f2658df4c9df08a2191b
parent9962d198c82d64a1562844f66ba67aba590fa7e4 (diff)
downloadpoky-eb6d89e9e6f27b683da6f2ba2227707a965a0094.tar.gz
bitbake: fetch2: Fix incorrect lfs parametrization for submodules
The existing code would pass `True` or `False` to the git fetcher. As the fetcher expects `lfs` to be set to `1` this always lead to LFS fetching being disabled. (Bitbake rev: 5e487a5a096400271ed1e29b0df72903f2304e49) Signed-off-by: Philip Lorenz <philip.lorenz@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/bb/fetch2/gitsm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py
index f514aedaf1..c8bc54e6ab 100644
--- a/bitbake/lib/bb/fetch2/gitsm.py
+++ b/bitbake/lib/bb/fetch2/gitsm.py
@@ -122,7 +122,7 @@ class GitSM(Git):
122 url += ";name=%s" % module 122 url += ";name=%s" % module
123 url += ";subpath=%s" % module 123 url += ";subpath=%s" % module
124 url += ";nobranch=1" 124 url += ";nobranch=1"
125 url += ";lfs=%s" % self._need_lfs(ud) 125 url += ";lfs=%s" % ("1" if self._need_lfs(ud) else "0")
126 # Note that adding "user=" here to give credentials to the 126 # Note that adding "user=" here to give credentials to the
127 # submodule is not supported. Since using SRC_URI to give git:// 127 # submodule is not supported. Since using SRC_URI to give git://
128 # URL a password is not supported, one have to use one of the 128 # URL a password is not supported, one have to use one of the