diff --git a/version.py b/version.py index 743baee7..39542079 100644 --- a/version.py +++ b/version.py @@ -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)