diff --git a/BuildChecker/git_helper.py b/BuildChecker/git_helper.py index 00fd93a43d..a2a6dfe6fd 100644 --- a/BuildChecker/git_helper.py +++ b/BuildChecker/git_helper.py @@ -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"])