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
1
wscript
1
wscript
|
@ -29,6 +29,7 @@ VERSION = str (major) + '.' + str (minor) + '.' + str (micro)
|
|||
|
||||
try:
|
||||
git = Utils.cmd_output (['git', 'rev-parse', '--short', 'HEAD'], silent=True)
|
||||
if git:
|
||||
VERSION = (VERSION + '-' + git).strip ()
|
||||
except:
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue