diff options
author | Mauro Queirós <maurofrqueiros@gmail.com> | 2020-05-29 11:06:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-06-04 13:28:16 +0100 |
commit | 8051b79733842aed8f9e839669760be478afe569 (patch) | |
tree | 79223d0879e45832746a6f7f63259eae1c0f8abe /bitbake | |
parent | 9800884deb81f01429d86014e0e6fadd2d659faa (diff) | |
download | poky-8051b79733842aed8f9e839669760be478afe569.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: 646d86df7de774255246a3d7051c308e43eb257d)
Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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 5b3793a705..4c7d388e16 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 | ||