Strip trailing newline returned by rev-parse

This commit is contained in:
ZyX 2014-10-25 13:06:46 +04:00
parent 2106be4066
commit 4a689ad648
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ else:
def get_version(): def get_version():
try: try:
return 'dev-' + subprocess.check_output(['git', 'rev-parse', 'HEAD']) return 'dev-' + subprocess.check_output(['git', 'rev-parse', 'HEAD']).strip()
except Exception as e: except Exception as e:
return 'dev' return 'dev'