Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 Mar 14, 2025
commit 311eeac59205ce9f6bd1cdea84404272943d58c7
4 changes: 2 additions & 2 deletions pre_commit/commands/hook_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def _rev_exists(rev: str) -> bool:

def _is_ancestor(ancestor: str, rev: str):
Comment thread
taliastocks marked this conversation as resolved.
Outdated
return not subprocess.call(
('git', 'merge-base', '--is-ancestor', ancestor, rev)
('git', 'merge-base', '--is-ancestor', ancestor, rev),
)


Expand All @@ -133,7 +133,7 @@ def _pre_push_ns(
if local_sha == Z40:
continue
elif remote_sha != Z40 and _rev_exists(remote_sha) \
and _is_ancestor(remote_sha, local_sha):
and _is_ancestor(remote_sha, local_sha):
return _ns(
'pre-push', color,
from_ref=remote_sha, to_ref=local_sha,
Expand Down
Loading