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)