summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorDerek Erdmann <derek.erdmann@sonos.com>2024-03-15 11:55:33 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-22 16:26:46 +0000
commit825055e83ea6ec0a9328ea4d53de6516dfb9a795 (patch)
treef8d6d809d274a5f60d39c0b0b57716680cb12763 /bitbake/lib/bb/fetch2/git.py
parent64057e6b153c387eafa0c4c8e0dab2779df45003 (diff)
downloadpoky-825055e83ea6ec0a9328ea4d53de6516dfb9a795.tar.gz
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 <derek.erdmann@sonos.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
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):
673 elif not need_lfs: 673 elif not need_lfs:
674 bb.note("Repository %s has LFS content but it is not being fetched" % (repourl)) 674 bb.note("Repository %s has LFS content but it is not being fetched" % (repourl))
675 else: 675 else:
676 runfetchcmd("%s lfs install" % ud.basecmd, d, workdir=destdir) 676 runfetchcmd("%s lfs install --local" % ud.basecmd, d, workdir=destdir)
677 677
678 if not ud.nocheckout: 678 if not ud.nocheckout:
679 if subpath: 679 if subpath: