From 8051b79733842aed8f9e839669760be478afe569 Mon Sep 17 00:00:00 2001 From: Mauro Queirós Date: Fri, 29 May 2020 11:06:07 +0100 Subject: 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 Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bitbake/lib') 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): 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 = [] -- cgit v1.2.3-54-g00ecf