diff --git a/trobz_deploy/command/configure.py b/trobz_deploy/command/configure.py index 7c356c6..fa13932 100644 --- a/trobz_deploy/command/configure.py +++ b/trobz_deploy/command/configure.py @@ -145,7 +145,7 @@ def configure( # noqa: C901 else: click.secho(f"\nCloning {eff_repo_url} into ~/{instance_name}…", fg="green") try: - clone_cmd = f"git clone {eff_repo_url} $HOME/{instance_name}" + clone_cmd = f"git clone --recurse-submodules {eff_repo_url} $HOME/{instance_name}" if eff_repo_branch: clone_cmd += f" --branch {eff_repo_branch}" executor.run(clone_cmd) diff --git a/trobz_deploy/command/update.py b/trobz_deploy/command/update.py index 067bcfc..78376b8 100644 --- a/trobz_deploy/command/update.py +++ b/trobz_deploy/command/update.py @@ -165,11 +165,11 @@ def run_hooks(hook_name: str) -> bool: try: if eff_repo_branch: executor.run( - f"git fetch origin && git checkout {eff_repo_branch} && git pull", + f"git fetch origin && git checkout {eff_repo_branch} && git pull --recurse-submodules", cwd=instance_path, ) else: - executor.run("git pull", cwd=instance_path) + executor.run("git pull --recurse-submodules", cwd=instance_path) except ExecutorError as exc: run_hooks("post-update") run_hooks("post-update-fail")