From 500d4506acfb32da682a03ce92206c9ebdb94ff4 Mon Sep 17 00:00:00 2001 From: Jakob Deutsch <31491536+jakobgabrield@users.noreply.github.com> Date: Tue, 3 Jan 2023 02:16:51 -0500 Subject: [PATCH] fix: add git not installed error message (#1208) Co-authored-by: Jakob Deutsch --- src/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.ts b/src/index.ts index 4877022da..2d44eee22 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,6 +19,7 @@ export function install(dir = '.husky'): void { // If git command is not found, status is null and we should return. // That's why status value needs to be checked explicitly. if (git(['rev-parse']).status !== 0) { + l(`git must be installed on your machine`) return }