mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
misc
This commit is contained in:
parent
342e5aa5b4
commit
13eb15844b
1 changed files with 2 additions and 2 deletions
4
setup.py
4
setup.py
|
@ -120,8 +120,8 @@ def dirty_version():
|
|||
return False
|
||||
_version = _version.decode('ascii')
|
||||
try:
|
||||
base, N, sha = _version.strip().split('-')
|
||||
except ValueError: # on base release
|
||||
_, N, sha = _version.strip().split('-')
|
||||
except ValueError: # tag name may contains "-"
|
||||
open('xonsh/dev.githash', 'w').close()
|
||||
print('failed to parse git version', file=sys.stderr)
|
||||
return False
|
||||
|
|
Loading…
Add table
Reference in a new issue