Strip trailing newline returned by rev-parse
This commit is contained in:
parent
2106be4066
commit
4a689ad648
2
setup.py
2
setup.py
|
@ -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'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue