Skip to content
Prev Previous commit
Next Next commit
Revert "remove == 0"
This reverts commit 5a4235c.
  • Loading branch information
ptarjan committed Dec 26, 2025
commit a26fb3ba02a00fe7023608ee53fa77436831bef5
2 changes: 1 addition & 1 deletion pre_commit/commands/hook_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Loading