This commit is contained in:
Paul Tarjan 2025-12-26 13:09:16 -10:00 committed by GitHub
commit e26dd63bf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -111,7 +111,10 @@ def _ns(
def _rev_exists(rev: str) -> bool: def _rev_exists(rev: str) -> bool:
return not subprocess.call(('git', 'rev-list', '--quiet', rev)) return not subprocess.call(
('git', 'cat-file', '-e', rev),
stderr=subprocess.DEVNULL,
)
def _pre_push_ns( def _pre_push_ns(