mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
parent
8416413a0e
commit
b285cccb19
1 changed files with 1 additions and 1 deletions
|
|
@ -111,7 +111,7 @@ def _ns(
|
||||||
|
|
||||||
|
|
||||||
def _rev_exists(rev: str) -> bool:
|
def _rev_exists(rev: str) -> bool:
|
||||||
return not subprocess.call(('git', 'rev-list', '--quiet', rev))
|
return subprocess.call(('git', 'cat-file', '-e', rev)) == 0
|
||||||
|
|
||||||
|
|
||||||
def _pre_push_ns(
|
def _pre_push_ns(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue