Tags were not being sorted properly if there was a prefix, as the numerical sort included the prefix in the first sort field. We grep this out via a capture group of the remainder of the tag, sort, then add the prefix back in if required. This also fixes the issue with double numbers.
The version being reported in get to the user (at the end of version-get()) was using an unsorted list of tags, so use the new sorted list for actually getting the version.
Tags were not being sorted properly if there was a prefix, as the numerical sort included the prefix in the first sort field. We grep this out via a capture group of the remainder of the tag, sort, then add the prefix back in if required. This also fixes the issue with double numbers.
The version being reported in
get
to the user (at the end ofversion-get()
) was using an unsorted list of tags, so use the new sorted list for actually getting the version.