Merge pull request #24 from RightBrain-Networks/bugfix/sort-tags

sort the tags
This commit is contained in:
Derek DeJonghe 2019-11-27 12:36:03 -05:00 committed by GitHub
commit 3f24e11a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ def get_tag_version():
version = "0.0.0"
tagged_versions = subprocess.Popen(['git','tag','-l',tag_expression],
tagged_versions = subprocess.Popen(['git','tag','--sort=taggerdate', '-l',tag_expression],
stdout=subprocess.PIPE, stderr=DEVNULL, cwd=".").stdout.read().decode('utf-8').rstrip().split('\n')
if len(tagged_versions) > 0 and tagged_versions[-1] != "":
version = tagged_versions[-1]