Skip to content

Commit

Permalink
Add --tags to version.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushuk committed Jan 19, 2024
1 parent a0c047e commit 773879d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion version.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

try:
with open(os.devnull, 'w') as devnull:
v = subprocess.check_output(['git', 'describe', '--dirty', '--abbrev'], stderr=stdout).decode().strip()
v = subprocess.check_output(['git', 'describe', '--tags', '--dirty', '--abbrev'], stderr=stdout).decode().strip()
if '-' in v:
bv = v[:v.index('-')]
bv = bv[:bv.rindex('.') + 1] + str(int(bv[bv.rindex('.') + 1:]) + 1)
Expand Down

0 comments on commit 773879d

Please sign in to comment.