|
@@ -96,7 +96,7 @@ func (repo *Repository) GetTag(name string) (*Tag, error) {
|
|
func (repo *Repository) GetTags() ([]string, error) {
|
|
func (repo *Repository) GetTags() ([]string, error) {
|
|
cmd := NewCommand("tag", "-l")
|
|
cmd := NewCommand("tag", "-l")
|
|
if version.Compare(gitVersion, "2.0.0", ">=") {
|
|
if version.Compare(gitVersion, "2.0.0", ">=") {
|
|
- cmd.AddArguments("--sort=-v:refname")
|
|
|
|
|
|
+ cmd.AddArguments("--sort=-v:taggerdate")
|
|
}
|
|
}
|
|
|
|
|
|
stdout, err := cmd.RunInDir(repo.Path)
|
|
stdout, err := cmd.RunInDir(repo.Path)
|