diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-26 15:53:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-10-27 16:39:20 +0100 |
commit | 886f8ebbe37fb1bee85eb1892ca1a14aef072900 (patch) | |
tree | 17039399856a02e8053cecde1433d2740de18c00 /bitbake | |
parent | 24a3f7b3648185e33133f5d96b184a6cb6524f3d (diff) | |
download | poky-886f8ebbe37fb1bee85eb1892ca1a14aef072900.tar.gz |
bitbake: tests/fetch: Allow handling of a file:// url within a submodule
CVE-2022-39253 in git meant file:// urls within submodules were disabled. Add
a parameter to the commands in the tests to allow this to continue to work.
(Bitbake rev: c90d57497b9bcd237c3ae810ee8edb5b0d2d575a)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 1152e89c0d..7bace415d0 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -1834,7 +1834,7 @@ class GitShallowTest(FetcherTest): | |||
1834 | self.add_empty_file('bsub', cwd=smdir) | 1834 | self.add_empty_file('bsub', cwd=smdir) |
1835 | 1835 | ||
1836 | self.git('submodule init', cwd=self.srcdir) | 1836 | self.git('submodule init', cwd=self.srcdir) |
1837 | self.git('submodule add file://%s' % smdir, cwd=self.srcdir) | 1837 | self.git('-c protocol.file.allow=always submodule add file://%s' % smdir, cwd=self.srcdir) |
1838 | self.git('submodule update', cwd=self.srcdir) | 1838 | self.git('submodule update', cwd=self.srcdir) |
1839 | self.git('commit -m submodule -a', cwd=self.srcdir) | 1839 | self.git('commit -m submodule -a', cwd=self.srcdir) |
1840 | 1840 | ||
@@ -1864,7 +1864,7 @@ class GitShallowTest(FetcherTest): | |||
1864 | self.add_empty_file('bsub', cwd=smdir) | 1864 | self.add_empty_file('bsub', cwd=smdir) |
1865 | 1865 | ||
1866 | self.git('submodule init', cwd=self.srcdir) | 1866 | self.git('submodule init', cwd=self.srcdir) |
1867 | self.git('submodule add file://%s' % smdir, cwd=self.srcdir) | 1867 | self.git('-c protocol.file.allow=always submodule add file://%s' % smdir, cwd=self.srcdir) |
1868 | self.git('submodule update', cwd=self.srcdir) | 1868 | self.git('submodule update', cwd=self.srcdir) |
1869 | self.git('commit -m submodule -a', cwd=self.srcdir) | 1869 | self.git('commit -m submodule -a', cwd=self.srcdir) |
1870 | 1870 | ||