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

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"])