From d8bcecc99d56350ac0340f39c0bef58db7df0541 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 23 Feb 2009 01:03:59 +0100 Subject: [PATCH] Only add the git hash to the version if it's not empty --- wscript | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wscript b/wscript index 2c0c4276..3789ce84 100644 --- a/wscript +++ b/wscript @@ -29,7 +29,8 @@ VERSION = str (major) + '.' + str (minor) + '.' + str (micro) try: git = Utils.cmd_output (['git', 'rev-parse', '--short', 'HEAD'], silent=True) - VERSION = (VERSION + '-' + git).strip () + if git: + VERSION = (VERSION + '-' + git).strip () except: pass