mirror of https://github.com/morpheus65535/bazarr
Fetch changes to origin before trying to get diff
This commit is contained in:
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…
Reference in New Issue