clone recursively

ensures submodules, if any, are included
pull/233/head
Min RK 2018-02-12 13:16:06 +01:00
rodzic 95b71d9737
commit 3ab4503f7c
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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: