Fetch changes to origin before trying to get diff

pull/115/merge
morpheus65535 6 years ago
parent 80b5b2bbba
commit 83206360ed

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

Loading…
Cancel
Save