Only add the git hash to the version if it's not empty
This commit is contained in:
parent
e3485dfbfb
commit
d8bcecc99d
1 changed files with 2 additions and 1 deletions
3
wscript
3
wscript
|
@ -29,7 +29,8 @@ VERSION = str (major) + '.' + str (minor) + '.' + str (micro)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
git = Utils.cmd_output (['git', 'rev-parse', '--short', 'HEAD'], silent=True)
|
git = Utils.cmd_output (['git', 'rev-parse', '--short', 'HEAD'], silent=True)
|
||||||
VERSION = (VERSION + '-' + git).strip ()
|
if git:
|
||||||
|
VERSION = (VERSION + '-' + git).strip ()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue