Update pre_commit/commands/hook_impl.py

This commit is contained in:
Talia Stocks 2025-03-14 12:27:41 -04:00 committed by GitHub
parent 311eeac592
commit aadf716902
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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),
)