From b9ac50faef838beae3393051cc037cfc6a862ef4 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 30 Jul 2012 12:09:20 +0200 Subject: [PATCH] Minor bug fix --- lib/core/revision.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/revision.py b/lib/core/revision.py index 92e60e893..8e816939c 100644 --- a/lib/core/revision.py +++ b/lib/core/revision.py @@ -42,6 +42,8 @@ def getRevisionNumber(): match = re.match(r"(?i)[0-9a-f]{32}", content) retVal = match.group(0) if match else None break + else: + break if not retVal: process = execute("git rev-parse --verify HEAD", shell=True, stdout=PIPE, stderr=PIPE)