From 24b7c85100f622a2317648491eb037cec2438233 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 6 Oct 2014 00:54:46 +0800 Subject: [PATCH] Fix git checkout when notifiers are enabled --- sickbeard/versionChecker.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sickbeard/versionChecker.py b/sickbeard/versionChecker.py index 33524a53..014c7413 100644 --- a/sickbeard/versionChecker.py +++ b/sickbeard/versionChecker.py @@ -543,9 +543,11 @@ class GitUpdateManager(UpdateManager): output, err, exit_status = self._run_git(self._git_path, 'checkout -f ' + self.branch) # @UnusedVariable if exit_status == 0: + self._find_installed_version() + # Notify update successful if sickbeard.NOTIFY_ON_UPDATE: - notifiers.notify_git_update(self._newest_commit_hash[:10]) + notifiers.notify_git_update(sickbeard.CUR_COMMIT_HASH if sickbeard.CUR_COMMIT_HASH else "") return True return False