commit
8fac3cc23d
@ -1,8 +1,9 @@
|
|||||||
from get_general_settings import *
|
from get_general_settings import *
|
||||||
|
|
||||||
import git
|
import os
|
||||||
|
import subprocess
|
||||||
|
result = subprocess.check_output(["git", "pull", '--dry-run', 'origin', branch], stderr=subprocess.STDOUT).split('\n')
|
||||||
|
|
||||||
g = git.cmd.Git(os.path.dirname(__file__))
|
if len(result) > 2:
|
||||||
g.pull('origin ' + branch + ' --dry-run')
|
subprocess.check_output(["git", "pull", 'origin', branch])
|
||||||
|
os.execlp('python', os.path.join(os.path.dirname(__file__), 'bazarr.py'))
|
||||||
print g
|
|
||||||
|
Loading…
Reference in new issue