1 2 3 4 5 6 7
def pull_or_clone(base_branch, target_path): .... try: cmd = ["submodule", "update", "--init"] base_branch.git_call(*cmd); except subprocess.CalledProcessError as e: print(e.output);