diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/gitsm.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/gitsm.py b/bitbake/lib/bb/fetch2/gitsm.py index 56bd5f0480..175dee05c0 100644 --- a/bitbake/lib/bb/fetch2/gitsm.py +++ b/bitbake/lib/bb/fetch2/gitsm.py | |||
@@ -163,9 +163,6 @@ class GitSM(Git): | |||
163 | try: | 163 | try: |
164 | newfetch = Fetch([url], d, cache=False) | 164 | newfetch = Fetch([url], d, cache=False) |
165 | newfetch.download() | 165 | newfetch.download() |
166 | # Drop a nugget to add each of the srcrevs we've fetched (used by need_update) | ||
167 | runfetchcmd("%s config --add bitbake.srcrev %s" % \ | ||
168 | (ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=workdir) | ||
169 | except Exception as e: | 166 | except Exception as e: |
170 | logger.error('gitsm: submodule download failed: %s %s' % (type(e).__name__, str(e))) | 167 | logger.error('gitsm: submodule download failed: %s %s' % (type(e).__name__, str(e))) |
171 | raise | 168 | raise |
@@ -181,6 +178,9 @@ class GitSM(Git): | |||
181 | shutil.rmtree(tmpdir) | 178 | shutil.rmtree(tmpdir) |
182 | else: | 179 | else: |
183 | self.process_submodules(ud, ud.clonedir, download_submodule, d) | 180 | self.process_submodules(ud, ud.clonedir, download_submodule, d) |
181 | # Drop a nugget for the srcrev we've fetched (used by need_update) | ||
182 | runfetchcmd("%s config --add bitbake.srcrev %s" % \ | ||
183 | (ud.basecmd, ud.revisions[ud.names[0]]), d, workdir=ud.clonedir) | ||
184 | 184 | ||
185 | def unpack(self, ud, destdir, d): | 185 | def unpack(self, ud, destdir, d): |
186 | def unpack_submodules(ud, url, module, modpath, workdir, d): | 186 | def unpack_submodules(ud, url, module, modpath, workdir, d): |