Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Oct 5, 2023
1 parent 7d07d21 commit 6318dd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/pylib/_boutpp_build/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def getversion():
# Things are messy here, so always assume useLocalVersion
try:
# 4.1 us proper hash
hash = run2('git log -n 1 --pretty=format:"%h"')
hash = "g" + run2('git log -n 1 --pretty=format:"%h"')
except subprocess.CalledProcessError:
# 4.2 fallback
hash = "unknown"
version = _bout_previous_version + "-rc+" + hash
version = _bout_previous_version + ".rc+" + hash
with open("_version.txt", "w") as f:
f.write(version + "\n")
return version
Expand Down

0 comments on commit 6318dd8

Please sign in to comment.