fix for computing version numbers from git repo
This commit is contained in:
parent
1a05cb5e59
commit
45042d5292
1 changed files with 3 additions and 1 deletions
4
setup.py
4
setup.py
|
|
@ -82,7 +82,9 @@ def dev_number():
|
|||
for t in raw_tags:
|
||||
t = t.strip()
|
||||
tags[t] = (
|
||||
subprocess.check_output(["git", "rev-parse", t]).decode("ascii").strip()
|
||||
subprocess.check_output(["git", "rev-parse", "%s^{}" % t])
|
||||
.decode("ascii")
|
||||
.strip()
|
||||
)
|
||||
try:
|
||||
sha = (
|
||||
|
|
|
|||
Loading…
Reference in a new issue