From 3ab4503f7c161abc25a809bfe207234aa6471e21 Mon Sep 17 00:00:00 2001 From: Min RK Date: Mon, 12 Feb 2018 13:16:06 +0100 Subject: [PATCH] clone recursively ensures submodules, if any, are included --- repo2docker/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repo2docker/app.py b/repo2docker/app.py index 34657282..aa23a643 100644 --- a/repo2docker/app.py +++ b/repo2docker/app.py @@ -151,7 +151,7 @@ class Repo2Docker(Application): def fetch(self, url, ref, checkout_path): try: - for line in execute_cmd(['git', 'clone', url, checkout_path], + for line in execute_cmd(['git', 'clone', '--recursive', url, checkout_path], capture=self.json_logs): self.log.info(line, extra=dict(phase='fetching')) except subprocess.CalledProcessError: