mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
small improves
This commit is contained in:
parent
6df5fbcf5e
commit
7959a97718
1 changed files with 2 additions and 1 deletions
3
setup.py
3
setup.py
|
@ -121,9 +121,10 @@ def dirty_version():
|
|||
open('xonsh/dev.githash', 'w').close()
|
||||
print('failed to parse git version', file=sys.stderr)
|
||||
return False
|
||||
sha = sha.strip('g')
|
||||
replace_version(base, N)
|
||||
with open('xonsh/dev.githash', 'w') as f:
|
||||
f.write(sha.strip('g'))
|
||||
f.write(sha)
|
||||
print('wrote git version: ' + sha, file=sys.stderr)
|
||||
return True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue