We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 824383d commit b117bd7Copy full SHA for b117bd7
src/bootstrap/bootstrap.py
@@ -708,6 +708,14 @@ def update_submodules(self):
708
if (not os.path.exists(os.path.join(self.rust_root, ".git"))) or \
709
self.get_toml('submodules') == "false":
710
return
711
+
712
+ # check the existence of 'git' command
713
+ try:
714
+ subprocess.check_output(['git', '--version'])
715
+ except (subprocess.CalledProcessError, OSError):
716
+ print("error: `git` is not found, please make sure it's installed and in the path.")
717
+ sys.exit(1)
718
719
slow_submodules = self.get_toml('fast-submodules') == "false"
720
start_time = time()
721
if slow_submodules:
0 commit comments