vendor: update github.com/gogs/git-module

This commit is contained in:
Unknwon
2018-06-09 10:00:45 +08:00
parent 4c844081f3
commit 078549518d
5 changed files with 7 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ import (
"time"
)
const _VERSION = "0.6.6"
const _VERSION = "0.6.7"
func Version() string {
return _VERSION

View File

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