From 83206360ed13098edafea70a1d8f2788b0d6bf4e Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 4 Jun 2018 23:56:22 -0400 Subject: [PATCH] Fetch changes to origin before trying to get diff --- check_update.py | 1 + 1 file changed, 1 insertion(+) diff --git a/check_update.py b/check_update.py index 834c0d7a2..f34bf3dff 100644 --- a/check_update.py +++ b/check_update.py @@ -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.')