From: Christian Dywan Date: Mon, 23 Feb 2009 00:03:59 +0000 (+0100) Subject: Only add the git hash to the version if it's not empty X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8bcecc99d56350ac0340f39c0bef58db7df0541;p=midori Only add the git hash to the version if it's not empty --- 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