From 124a2b65933558d8bb5e233917abc8185348a3fd Mon Sep 17 00:00:00 2001 From: j Date: Tue, 1 Dec 2015 09:58:03 +0100 Subject: [PATCH] disable git update notification --- oml/update.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/oml/update.py b/oml/update.py index b11c743..2d4cebe 100644 --- a/oml/update.py +++ b/oml/update.py @@ -176,6 +176,7 @@ def getVersion(data): 'upgrade': False, } if settings.MINOR_VERSION == 'git': + ''' cmd = ['git', 'rev-parse', '@'] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, close_fds=True) stdout, stderr = p.communicate() @@ -185,6 +186,8 @@ def getVersion(data): stdout, stderr = p.communicate() new = stdout.strip()[:40] response['update'] = len(new) == 40 and current != new + ''' + response['update'] = False else: if not os.path.exists(os.path.join(settings.updates_path, 'release.json')): return response