diff options
author | Mauro Queirós <maurofrqueiros@gmail.com> | 2021-02-03 04:22:06 -1000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-05 12:18:38 +0000 |
commit | 85c616cb8cd90d2a09989526d49b7352722fee33 (patch) | |
tree | eb6a6adce18c145172ca41a8ac1aa5566d77f876 | |
parent | 7723cbe607bb988a85be6edea3e92420c421e03a (diff) | |
download | poky-85c616cb8cd90d2a09989526d49b7352722fee33.tar.gz |
bitbake: git.py: skip smudging if lfs=0 is set
Git-LFS objects were being fetched even when lfs=0 was not set.
This patch disables LFS smudging when lfs=0. That way, only the LFS pointers
are downloaded during checkout.
(Bitbake rev: 3d09608cabd404733b95ea92d5b00830ded77834)
Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 646d86df7de774255246a3d7051c308e43eb257d)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index dcecff5d38..59afc32de1 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -475,6 +475,9 @@ class Git(FetchMethod): | |||
475 | 475 | ||
476 | need_lfs = ud.parm.get("lfs", "1") == "1" | 476 | need_lfs = ud.parm.get("lfs", "1") == "1" |
477 | 477 | ||
478 | if not need_lfs: | ||
479 | ud.basecmd = "GIT_LFS_SKIP_SMUDGE=1 " + ud.basecmd | ||
480 | |||
478 | source_found = False | 481 | source_found = False |
479 | source_error = [] | 482 | source_error = [] |
480 | 483 | ||