diff options
author | Niels Avonds <niels@codebits.be> | 2021-04-19 12:41:26 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-04-20 13:57:50 +0100 |
commit | d12a06cd49b6cc13fcd15e56b5034de5ced642ee (patch) | |
tree | 7ad6e3a2e049ea62a8931119b0078f272dd22f6e /bitbake | |
parent | 6584e59ff026791d2355cdd0cce6b0e043a12cbb (diff) | |
download | poky-d12a06cd49b6cc13fcd15e56b5034de5ced642ee.tar.gz |
bitbake: fetch/gitsm: Fix crash when using git LFS and submodules
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
[YOCTO #14283]
(Bitbake rev: 26caedc4d2e9b5a0f1d57f9291754a7f6c5e437e)
Signed-off-by: Niels Avonds <niels@codebits.be>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 3e25b4b604..5e65c83c63 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -398,7 +398,7 @@ class Git(FetchMethod): | |||
398 | tmpdir = tempfile.mkdtemp(dir=d.getVar('DL_DIR')) | 398 | tmpdir = tempfile.mkdtemp(dir=d.getVar('DL_DIR')) |
399 | try: | 399 | try: |
400 | # Do the checkout. This implicitly involves a Git LFS fetch. | 400 | # Do the checkout. This implicitly involves a Git LFS fetch. |
401 | self.unpack(ud, tmpdir, d) | 401 | Git.unpack(self, ud, tmpdir, d) |
402 | 402 | ||
403 | # Scoop up a copy of any stuff that Git LFS downloaded. Merge them into | 403 | # Scoop up a copy of any stuff that Git LFS downloaded. Merge them into |
404 | # the bare clonedir. | 404 | # the bare clonedir. |