mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-29 20:14:01 +00:00
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.
This commit is contained in:
parent
20f6c84fd2
commit
bfda9ca1c1
1 changed files with 1 additions and 0 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue