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

@ -30,8 +30,8 @@ def _update_repository(repo_config, runner):
repo = Repository.create(repo_config, runner.store)
with local.cwd(repo.repo_path_getter.repo_path):
local['git']['fetch']()
head_sha = local['git']['rev-parse', 'origin/master']().strip()
local['git']('fetch')
head_sha = local['git']('rev-parse', 'origin/master').strip()
# Don't bother trying to update if our sha is the same
if head_sha == repo_config['sha']: