mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 00:24:47 +04:00
Update pre_commit/commands/hook_impl.py
This commit is contained in:
parent
311eeac592
commit
aadf716902
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ def _rev_exists(rev: str) -> bool:
|
|||
return not subprocess.call(('git', 'rev-list', '--quiet', rev))
|
||||
|
||||
|
||||
def _is_ancestor(ancestor: str, rev: str):
|
||||
def _is_ancestor(ancestor: str, rev: str) -> bool:
|
||||
return not subprocess.call(
|
||||
('git', 'merge-base', '--is-ancestor', ancestor, rev),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue