You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed you guys closed #114 but "tags" is still returning the tags in a "sorted" not chronological order. That's causing "tags.latest" to be incorrect in some instances.
On newer versions of git, it looks like it's possible to pass '--sort=-creatordate' which causes them to sort by their creation date. Not sure what git targets you're trying to support but updating the call to be
/**
* List all tags
*
* @param {Function} [then]
*/
Git.prototype.tags = function (then) {
return this.tag(['-l', '--sort=-creatordate'], Git._responseHandler(then, 'TagList'));
};
Seems to work.
The text was updated successfully, but these errors were encountered:
The sorting and tags.latest was added to sort by semantic versioning, if there is now an option to specify the sort order, I'll remove the library sorting when that option is provided.
As of Git version 2.7 you can use the --sort option in git tag, I've amended the git.tags function to accept an options object, if the options include the --sort option, the existing default behaviour of sorting by semantic versioning will be removed. It's worth noting though that if you are using an older version of git, the command will fail as it is an unsupported option.
I noticed you guys closed #114 but "tags" is still returning the tags in a "sorted" not chronological order. That's causing "tags.latest" to be incorrect in some instances.
On newer versions of git, it looks like it's possible to pass '--sort=-creatordate' which causes them to sort by their creation date. Not sure what git targets you're trying to support but updating the call to be
Seems to work.
The text was updated successfully, but these errors were encountered: