mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 09:04:41 +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
aec205773a
commit
58cbea1156
1 changed files with 6 additions and 4 deletions
|
|
@ -111,10 +111,12 @@ def _ns(
|
||||||
|
|
||||||
|
|
||||||
def _rev_exists(rev: str) -> bool:
|
def _rev_exists(rev: str) -> bool:
|
||||||
return not bool(subprocess.call(
|
return not bool(
|
||||||
|
subprocess.call(
|
||||||
('git', 'cat-file', '-e', rev),
|
('git', 'cat-file', '-e', rev),
|
||||||
stderr=subprocess.DEVNULL,
|
stderr=subprocess.DEVNULL,
|
||||||
))
|
),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def _pre_push_ns(
|
def _pre_push_ns(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue