mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-16 10:31:46 +04:00
writing tests for custom core hooksPaths
This commit is contained in:
parent
1c8fe57b66
commit
026e10bcc1
3 changed files with 40 additions and 2 deletions
|
|
@ -146,7 +146,8 @@ def install(
|
|||
if not follow_hooks_path:
|
||||
logger.error(
|
||||
'Cowardly refusing to install hooks with `core.hooksPath` set.'
|
||||
'\nhint: `git config --unset-all core.hooksPath`',
|
||||
'\nhint: `git config --unset-all core.hooksPath`, '
|
||||
'or use the `--follow-custom-hooks-path` flag',
|
||||
)
|
||||
return 1
|
||||
|
||||
|
|
|
|||
|
|
@ -271,7 +271,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
|
|||
'--follow-custom-hooks-path', action='store_true', default=False,
|
||||
help=(
|
||||
'Whether to follow a custom core.hooksPath when attempting '
|
||||
'to install the pre-comit hook.'
|
||||
'to install the pre-commit hook.'
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue