Add error for git not found in git_helper (#4011)

* Add error for git not found in git_helper

* Exc instead
This commit is contained in:
metalgearsloth 2021-05-17 06:27:30 +10:00 committed by GitHub
parent cd6810e92a
commit efbe129d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,9 @@ def update_submodules():
if os.path.isfile("DISABLE_SUBMODULE_AUTOUPDATE"):
return
if shutil.which("git") is None:
raise FileNotFoundError("git not found in PATH")
# If the status doesn't match, force VS to reload the solution.
# status = run_command(["git", "submodule", "status"], capture=True)
run_command(["git", "submodule", "update", "--init", "--recursive"])