mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
42fe699ef4
commit
779ca90243
1 changed files with 1 additions and 1 deletions
|
|
@ -77,7 +77,7 @@ def _install_hook_script(
|
|||
# git repo we shouldn't try to mess with it
|
||||
repo_dir = os.path.dirname(os.path.realpath(git_dir))
|
||||
if os.path.commonpath(
|
||||
[repo_dir, os.path.realpath(hook_path)]
|
||||
[repo_dir, os.path.realpath(hook_path)],
|
||||
) != repo_dir:
|
||||
logger.error(
|
||||
'Cowardly refusing to install hook script to a directory '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue