From bfda9ca1c1e396411850e335f6c22ab1ffb90fe7 Mon Sep 17 00:00:00 2001 From: Maik Riechert Date: Wed, 10 Jul 2019 21:11:59 +0100 Subject: [PATCH] Make sure submodule urls are up-to-date (#1357) This extends build.py to run git submodule sync --recursive before running git submodule update --init --recursive. This makes sure submodule URLs are up-to-date. --- tools/ci_build/build.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/ci_build/build.py b/tools/ci_build/build.py index 28a79d23f3..73d2b54087 100755 --- a/tools/ci_build/build.py +++ b/tools/ci_build/build.py @@ -181,6 +181,7 @@ def run_subprocess(args, cwd=None, capture=False, dll_path=None, shell=False): return subprocess.run(args, cwd=cwd, check=True, stdout=stdout, stderr=stderr, env=my_env, shell=shell) def update_submodules(source_dir): + run_subprocess(["git", "submodule", "sync", "--recursive"], cwd=source_dir) run_subprocess(["git", "submodule", "update", "--init", "--recursive"], cwd=source_dir) def is_docker():