git sensor wip

This commit is contained in:
Hristo
2024-01-27 18:58:30 +02:00
parent 89ff0a8863
commit e8a2c5919f

View File

@@ -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)