mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
Merge pull request #398 from sanmai-NL/clarify_git_err_msg
Clarify/correct error message
This commit is contained in:
commit
f11338ccfa
1 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,8 @@ def get_root():
|
|||
return cmd_output('git', 'rev-parse', '--show-toplevel')[1].strip()
|
||||
except CalledProcessError:
|
||||
raise FatalError(
|
||||
'Called from outside of the gits. Please cd to a git repository.'
|
||||
'git failed. Is it installed, and are you in a Git repository '
|
||||
'directory?'
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue