Gitsm fetcher crashes when cloning a repository that contains LFS files. This happens because the unpack method is called during download, but the submodules have not been downloaded yet at this point.
This issue was introduced in this commit: 977b7268bf4fd425cb86d4a57500350c9b829162 Someone else already encountered the same issue as well: https://bugzilla.yoctoproject.org/show_bug.cgi?id=14283 >From aa99ad52f9ef11eb2875c5d7930abba52e229f0c Mon Sep 17 00:00:00 2001 From: Niels Avonds <[email protected]> Date: Thu, 1 Apr 2021 18:48:03 +0200 Subject: [PATCH] NE-630: Temporary fix for gitsm fetcher Signed-off-by: Niels Avonds <[email protected]> --- bitbake/lib/bb/fetch2/git.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 8740e9c05f..112b833f87 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py @@ -388,7 +388,7 @@ class Git(FetchMethod): tmpdir = tempfile.mkdtemp(dir=d.getVar('DL_DIR')) try: # Do the checkout. This implicitly involves a Git LFS fetch. - self.unpack(ud, tmpdir, d) + Git.unpack(self, ud, tmpdir, d) # Scoop up a copy of any stuff that Git LFS downloaded. Merge them into # the bare clonedir. -- 2.25.1 Niels Avonds Codebits
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#150670): https://lists.openembedded.org/g/openembedded-core/message/150670 Mute This Topic: https://lists.openembedded.org/mt/82205321/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
