summaryrefslogtreecommitdiff
path: root/morph
diff options
context:
space:
mode:
Diffstat (limited to 'morph')
-rwxr-xr-xmorph5
1 files changed, 4 insertions, 1 deletions
diff --git a/morph b/morph
index 003147e3..b6902a75 100755
--- a/morph
+++ b/morph
@@ -214,11 +214,14 @@ class Morph(cliapp.Application):
needed.append(artifact)
logging.debug('cmd_build: cloning/updating cached repos')
+ done = set()
for artifact in needed:
artifact.source.repo = lrc.cache_repo(
artifact.source.repo_name)
if not self.settings['no-git-update']:
- artifact.source.repo.update()
+ self._cache_repo_and_submodules(
+ lrc, artifact.source.repo.url, artifact.source.sha1,
+ done)
if self.settings['bootstrap']:
staging_root = '/'