Skip to content

Commit 500d450

Browse files
jakobgabrieldJakob Deutsch
and
Jakob Deutsch
authored
fix: add git not installed error message (#1208)
Co-authored-by: Jakob Deutsch <[email protected]>
1 parent 2945907 commit 500d450

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export function install(dir = '.husky'): void {
1919
// If git command is not found, status is null and we should return.
2020
// That's why status value needs to be checked explicitly.
2121
if (git(['rev-parse']).status !== 0) {
22+
l(`git must be installed on your machine`)
2223
return
2324
}
2425

0 commit comments

Comments
 (0)