Fetch changes to origin before trying to get diff

This commit is contained in:
morpheus65535 2018-06-04 23:56:22 -04:00
parent 80b5b2bbba
commit 83206360ed
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ def check_and_apply_update():
gitconfig()
branch = get_general_settings()[5]
g = git.cmd.Git(current_working_directory)
g.fetch('origin')
result = g.diff('--shortstat', 'origin/' + branch)
if len(result) == 0:
logging.info('No new version of Bazarr available.')