From 18fac1bfadfa3976fb34eef118a80c00851d10d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 6 Nov 2017 23:23:36 -0500 Subject: [PATCH] Check for update test --- check_update.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/check_update.py b/check_update.py index 176e7592a..bb108c978 100644 --- a/check_update.py +++ b/check_update.py @@ -1,8 +1,5 @@ from get_general_settings import * import git - -g = git.cmd.Git(os.path.dirname(__file__)) -g.pull('origin ' + branch + ' --dry-run') - -print g \ No newline at end of file +import subprocess +print subprocess.check_output(["git", "pull", '--dry-run', '--quiet', 'origin', branch], stderr=subprocess.STDOUT)