git sensor wip
This commit is contained in:
@@ -146,9 +146,9 @@ def check_git_update():
|
|||||||
full_cmd = "git remote update && git status -uno"
|
full_cmd = "git remote update && git status -uno"
|
||||||
git_update = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].decode("utf-8")
|
git_update = subprocess.Popen(full_cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate()[0].decode("utf-8")
|
||||||
if 'Your branch is up to date' in git_update:
|
if 'Your branch is up to date' in git_update:
|
||||||
git_update = 0
|
git_update = 'off'
|
||||||
else:
|
else:
|
||||||
git_update = 1
|
git_update = 'on'
|
||||||
|
|
||||||
return(git_update)
|
return(git_update)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user