From 825055e83ea6ec0a9328ea4d53de6516dfb9a795 Mon Sep 17 00:00:00 2001 From: Derek Erdmann Date: Fri, 15 Mar 2024 11:55:33 -0700 Subject: bitbake: fetch2/git: Install Git LFS in local repository config Git uses a lock file to prevent concurrent modifications to the global config, so if unpack tasks for different recipes try to run "git lfs install" simultaneously the operation can fail: error: could not lock config file /home/build/.gitconfig: File exists exit status 255 Run `git lfs install --force` to reset Git configuration. Adding "--local" sets the smudge and clean filters in the local repository's config instead of modifying the user's global config. (Bitbake rev: 328ca4de8422be514fa0d0c9e3cfd36bb9d3e9a7) Signed-off-by: Derek Erdmann Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch2/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bitbake/lib/bb/fetch2/git.py') diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 6170da7fa6..c7ff769fdf 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -673,7 +673,7 @@ class Git(FetchMethod): elif not need_lfs: bb.note("Repository %s has LFS content but it is not being fetched" % (repourl)) else: - runfetchcmd("%s lfs install" % ud.basecmd, d, workdir=destdir) + runfetchcmd("%s lfs install --local" % ud.basecmd, d, workdir=destdir) if not ud.nocheckout: if subpath: -- cgit v1.2.3-54-g00ecf