From cba77410a93bea8d4ab239fde08564f2a1a8b02a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Thu, 26 Jul 2012 00:08:49 +0200 Subject: [PATCH] Minor style update --- lib/core/revision.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/revision.py b/lib/core/revision.py index 6e0960c9c..92e60e893 100644 --- a/lib/core/revision.py +++ b/lib/core/revision.py @@ -18,8 +18,8 @@ def getRevisionNumber(): retVal = None filePath = None - _ = os.path.dirname(__file__) + while True: filePath = os.path.join(_, ".git", "HEAD") if os.path.exists(filePath): @@ -30,6 +30,7 @@ def getRevisionNumber(): break else: _ = os.path.dirname(_) + while True: if filePath and os.path.isfile(filePath): with open(filePath, "r") as f: