Skip to content

Commit

Permalink
Hide git output
Browse files Browse the repository at this point in the history
  • Loading branch information
joenano committed Oct 21, 2021
1 parent e442f2c commit 3dde2bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/utils/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def get_status(self):

def pull_latest(self):
command = ['git', 'pull', 'origin', 'master']
status = subprocess.check_output(command, cwd=self.root_dir)
return status.decode('utf-8')
ret = subprocess.run(command, cwd=self.root_dir)
return ret

def up_to_date(self):
if 'up-to-date' in self.get_status():
return True

0 comments on commit 3dde2bc

Please sign in to comment.