summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-26 15:53:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-10-26 23:02:13 +0100
commit65779419ad26a3cf3a546e8a4b8603c1434119ef (patch)
tree2ed196a19305df02fa39d79d96fbca8391d1caf5 /bitbake
parent6e166954841c926b9cd392799a1181101c2b1afa (diff)
downloadpoky-65779419ad26a3cf3a546e8a4b8603c1434119ef.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: 209f7ba352b60722830157054e3fc56cb9c693eb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/tests/fetch.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py
index c5f6ce9dab..0af06e46e5 100644
--- a/bitbake/lib/bb/tests/fetch.py
+++ b/bitbake/lib/bb/tests/fetch.py
@@ -1871,7 +1871,7 @@ class GitShallowTest(FetcherTest):
1871 self.add_empty_file('bsub', cwd=smdir) 1871 self.add_empty_file('bsub', cwd=smdir)
1872 1872
1873 self.git('submodule init', cwd=self.srcdir) 1873 self.git('submodule init', cwd=self.srcdir)
1874 self.git('submodule add file://%s' % smdir, cwd=self.srcdir) 1874 self.git('-c protocol.file.allow=always submodule add file://%s' % smdir, cwd=self.srcdir)
1875 self.git('submodule update', cwd=self.srcdir) 1875 self.git('submodule update', cwd=self.srcdir)
1876 self.git('commit -m submodule -a', cwd=self.srcdir) 1876 self.git('commit -m submodule -a', cwd=self.srcdir)
1877 1877
@@ -1901,7 +1901,7 @@ class GitShallowTest(FetcherTest):
1901 self.add_empty_file('bsub', cwd=smdir) 1901 self.add_empty_file('bsub', cwd=smdir)
1902 1902
1903 self.git('submodule init', cwd=self.srcdir) 1903 self.git('submodule init', cwd=self.srcdir)
1904 self.git('submodule add file://%s' % smdir, cwd=self.srcdir) 1904 self.git('-c protocol.file.allow=always submodule add file://%s' % smdir, cwd=self.srcdir)
1905 self.git('submodule update', cwd=self.srcdir) 1905 self.git('submodule update', cwd=self.srcdir)
1906 self.git('commit -m submodule -a', cwd=self.srcdir) 1906 self.git('commit -m submodule -a', cwd=self.srcdir)
1907 1907