Check for 'git' before fetching/building grammars (#7320)

Previously the error message for this potential failure-case was
confusing: "no such file or directory". `hx -g fetch`, `hx -g build` and
the helix-term builder should bail early if the git binary is not
available.
This commit is contained in:
Michael Davis 2023-06-12 10:32:36 -05:00 committed by GitHub
parent 18e07addfd
commit 25ad534d64
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 13 additions and 0 deletions

View file

@ -21,6 +21,7 @@ etcetera = "0.8"
tree-sitter = "0.20"
once_cell = "1.18"
log = "0.4"
which = "4.4"
# TODO: these two should be on !wasm32 only