From 29ac49c959fe4e3af5c418ad2fe4c4cc4832c845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 5 Dec 2017 14:14:51 -0500 Subject: [PATCH] Improvement to update mechanism --- check_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_update.py b/check_update.py index 6c32ebd7c..ba62d394a 100644 --- a/check_update.py +++ b/check_update.py @@ -20,7 +20,7 @@ def check_and_apply_update(repo=local_repo, remote_name='origin'): # We can just fastforward elif merge_result & pygit2.GIT_MERGE_ANALYSIS_FASTFORWARD: repo.checkout_tree(repo.get(remote_id)) - master_ref = repo.lookup_reference('refs/heads/' + branch) + master_ref = repo.lookup_reference('refs/remotes/origin/' + str(branch)) master_ref.set_target(remote_id) repo.head.set_target(remote_id) result = 'Bazarr updated to latest version and restarting.'