Skip to content
Prev Previous commit
Next Next commit
convert to not not
  • Loading branch information
ptarjan committed Dec 26, 2025
commit ade6b69f2f7557f6c9e159d58ee1fbf50f83c146
4 changes: 2 additions & 2 deletions pre_commit/commands/hook_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading