mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Use plumbum a bit better.
This commit is contained in:
parent
92aa55f44e
commit
7b1230df27
9 changed files with 44 additions and 44 deletions
|
|
@ -33,7 +33,7 @@ def copy_tree_to_path(src_dir, dest_dir):
|
|||
|
||||
def get_head_sha(dir):
|
||||
with local.cwd(dir):
|
||||
return local['git']['rev-parse', 'HEAD']().strip()
|
||||
return local['git']('rev-parse', 'HEAD').strip()
|
||||
|
||||
|
||||
def is_valid_according_to_schema(obj, schema):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue