Skip to content
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 26, 2025
commit 07ad09136345775799ba4867d2d58fcc48cb7072
10 changes: 6 additions & 4 deletions pre_commit/commands/hook_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,12 @@ def _ns(


def _rev_exists(rev: str) -> bool:
return not (not subprocess.call(
('git', 'cat-file', '-e', rev),
stderr=subprocess.DEVNULL,
))
return not (
not subprocess.call(
('git', 'cat-file', '-e', rev),
stderr=subprocess.DEVNULL,
)
)


def _pre_push_ns(
Expand Down
Loading