From ade6b69f2f7557f6c9e159d58ee1fbf50f83c146 Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Fri, 26 Dec 2025 15:27:50 -0700 Subject: [PATCH] convert to not not --- pre_commit/commands/hook_impl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit/commands/hook_impl.py b/pre_commit/commands/hook_impl.py index d9849a1c..e5c26b90 100644 --- a/pre_commit/commands/hook_impl.py +++ b/pre_commit/commands/hook_impl.py @@ -111,10 +111,10 @@ def _ns( def _rev_exists(rev: str) -> bool: - return subprocess.call( + return not not subprocess.call( ('git', 'cat-file', '-e', rev), stderr=subprocess.DEVNULL, - ) == 0 + ) def _pre_push_ns(