From a26fb3ba02a00fe7023608ee53fa77436831bef5 Mon Sep 17 00:00:00 2001 From: Paul Tarjan Date: Fri, 26 Dec 2025 15:11:03 -0700 Subject: [PATCH] Revert "remove == 0" This reverts commit 5a4235c6f070398f2630c6475aae2ac6a193868a. --- pre_commit/commands/hook_impl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/commands/hook_impl.py b/pre_commit/commands/hook_impl.py index 0c72d8d5..ddfac519 100644 --- a/pre_commit/commands/hook_impl.py +++ b/pre_commit/commands/hook_impl.py @@ -111,7 +111,7 @@ def _ns( def _rev_exists(rev: str) -> bool: - return subprocess.call(('git', 'cat-file', '-e', rev)) + return subprocess.call(('git', 'cat-file', '-e', rev)) == 0 def _pre_push_ns(