summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2
diff options
context:
space:
mode:
authorMark Hatle <mark.hatle@windriver.com>2019-01-26 20:04:23 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-28 23:14:27 +0000
commita7774aced031de1c8e42d0559182e802df8bcaa8 (patch)
tree4095835e9b15703cfb3f952819ef56e227b68dad /bitbake/lib/bb/fetch2
parent99fc8d54d6b42278b15502f6cd3aa6b9b183abcf (diff)
downloadpoky-a7774aced031de1c8e42d0559182e802df8bcaa8.tar.gz
bitbake: gitsm: The fetcher did not process some recursive submodules properly.
Move the submodule processing outside of the if statement to avoid any optimizations that may happen. Update the test cases to include the additional case, and split the other test cases into individual tests to make it easier to figure out what the failure may be. (Bitbake rev: 0ec98c01ae50f95c9c74acf53013ac59e0e72b08) Signed-off-by: Mark Hatle <mark.hatle@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2')
-rw-r--r--bitbake/lib/bb/fetch2/gitsm.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py
index f45546b49b..b21fed2669 100644
--- a/bitbake/lib/bb/fetch2/gitsm.py
+++ b/bitbake/lib/bb/fetch2/gitsm.py
@@ -198,6 +198,8 @@ class GitSM(Git):
198 198
199 Git.unpack(self, ud, destdir, d) 199 Git.unpack(self, ud, destdir, d)
200 200
201 if not ud.bareclone and self.process_submodules(ud, ud.destdir, unpack_submodules, d): 201 ret = self.process_submodules(ud, ud.destdir, unpack_submodules, d)
202
203 if not ud.bareclone and ret:
202 # Run submodule update, this sets up the directories -- without touching the config 204 # Run submodule update, this sets up the directories -- without touching the config
203 runfetchcmd("%s submodule update --recursive --no-fetch" % (ud.basecmd), d, quiet=True, workdir=ud.destdir) 205 runfetchcmd("%s submodule update --recursive --no-fetch" % (ud.basecmd), d, quiet=True, workdir=ud.destdir)