From 80b5b2bbba3fd2242f49799c50a748bb588eb2bd Mon Sep 17 00:00:00 2001 From: morpheus65535 <5130500+morpheus65535@users.noreply.github.com> Date: Mon, 4 Jun 2018 23:50:23 -0400 Subject: [PATCH] Work in progress.... --- check_update.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check_update.py b/check_update.py index 54e10d9f5..834c0d7a2 100644 --- a/check_update.py +++ b/check_update.py @@ -27,13 +27,13 @@ def check_and_apply_update(): gitconfig() branch = get_general_settings()[5] g = git.cmd.Git(current_working_directory) - g.reset('--hard', 'HEAD') - g.checkout(branch) - g.reset('--hard', 'origin/' + branch) result = g.diff('--shortstat', 'origin/' + branch) if len(result) == 0: logging.info('No new version of Bazarr available.') else: + g.reset('--hard', 'HEAD') + g.checkout(branch) + g.reset('--hard','origin/' + branch) g.pull() logging.info('Bazarr updated to latest version and need to be restarted. ' + result) updated()