fetch2/git: Install Git LFS in local repository config
PATCH 1/1 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.
Signed-off-by Derek Erdmann <[email protected]>
--- lib/bb/fetch2/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/git.py +1 -1
@@ -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:
Signature · 1 line
2.43.2