Use plumbum a bit better.

This commit is contained in:
Anthony Sottile 2014-06-15 12:11:49 -07:00
parent 92aa55f44e
commit 7b1230df27
9 changed files with 44 additions and 44 deletions

View file

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