Strip whitespace and line breaks off git version string

This commit is contained in:
Christian Dywan 2010-08-07 15:46:33 +02:00
parent 0870196942
commit aac70d52b5

View file

@ -37,7 +37,7 @@ VERSION = str (major) + '.' + str (minor) + '.' + str (micro)
try:
git = Utils.cmd_output (['git', 'describe'], silent=True)
if git:
VERSION = git
VERSION = git.strip ()
except:
pass