diff options
author | Mauro Queirós <maurofrqueiros@gmail.com> | 2020-05-29 11:06:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-05-30 13:27:35 +0100 |
commit | 646d86df7de774255246a3d7051c308e43eb257d (patch) | |
tree | 274c99d2ffd1b04f800805b84f8f9dd8c3142360 /lib | |
parent | ee15e78c6f9b59c221b1e43973ee4db20c5b443b (diff) | |
download | bitbake-646d86df7de774255246a3d7051c308e43eb257d.tar.gz |
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.
Signed-off-by: Mauro Queiros <maurofrqueiros@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/fetch2/git.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 5b3793a70..4c7d388e1 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -475,6 +475,9 @@ class Git(FetchMethod): need_lfs = ud.parm.get("lfs", "1") == "1" + if not need_lfs: + ud.basecmd = "GIT_LFS_SKIP_SMUDGE=1 " + ud.basecmd + source_found = False source_error = [] |