Skip to content

Commit 1d4a332

Browse files
Sander MaijersSander Maijers
authored andcommitted
Clarify/correct error message
The error also occurs if the `git` utility isn't available.
1 parent ea05189 commit 1d4a332

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pre_commit/git.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ def get_root():
2020
return cmd_output('git', 'rev-parse', '--show-toplevel')[1].strip()
2121
except CalledProcessError:
2222
raise FatalError(
23-
'Called from outside of the gits. Please cd to a git repository.'
23+
'git failed. Is it installed, and are you in a Git repository '
24+
'directory?'
2425
)
2526

2627

0 commit comments

Comments
 (0)