Skip to content

Commit 50b025c

Browse files
committed
BUG: Sort release tags with creatordate instead of taggerdate
Required per the discussion here: https://stackoverflow.com/questions/6269927/how-can-i-list-all-tags-in-my-git-repository-by-the-date-they-were-created
1 parent 6d227b5 commit 50b025c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utilities/release-notes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
output_file = sys.argv[1]
1010

1111
with open(output_file, 'w') as fp:
12-
tags = subprocess.check_output(['git', 'tag', '--sort=taggerdate']).decode('utf-8')
12+
tags = subprocess.check_output(['git', 'tag', '--sort=creatordate']).decode('utf-8')
1313
recent_tags = tags.split()[-2:]
1414
previous_tag = recent_tags[0]
1515
current_tag = recent_tags[1]

0 commit comments

Comments
 (0)