From 827e67177e75411ccf4546d999707e0295302b32 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 22 Oct 2011 22:23:53 +0200 Subject: [PATCH] Save stash before pulling changes --- couchpotato/core/plugins/updater/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/updater/main.py b/couchpotato/core/plugins/updater/main.py index 7b60a0d3..420df12b 100644 --- a/couchpotato/core/plugins/updater/main.py +++ b/couchpotato/core/plugins/updater/main.py @@ -97,7 +97,10 @@ class Updater(Plugin): def doUpdate(self): try: - log.info('Updating to latest version'); + log.debug('Stashing local changes') + self.repo.saveStash() + + log.info('Updating to latest version') self.repo.pull() # Delete leftover .pyc files