From 779ca902439485f2a0a9908ec6f1f4541000b893 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 14 Mar 2024 13:16:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pre_commit/commands/install_uninstall.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py index 1223a43f..152b1fb7 100644 --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -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 '