mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 16:24:40 +04:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
6c87f31a79
commit
311eeac592
1 changed files with 2 additions and 2 deletions
|
|
@ -115,7 +115,7 @@ def _rev_exists(rev: str) -> bool:
|
|||
|
||||
def _is_ancestor(ancestor: str, rev: str):
|
||||
return not subprocess.call(
|
||||
('git', 'merge-base', '--is-ancestor', ancestor, rev)
|
||||
('git', 'merge-base', '--is-ancestor', ancestor, rev),
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue