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

This commit is contained in:
Unknwon
2018-06-25 19:58:40 +08:00
parent 992ea5802a
commit f4f4edf276
5 changed files with 8 additions and 8 deletions

View File

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

View File

@@ -95,7 +95,7 @@ func (repo *Repository) GetTag(name string) (*Tag, error) {
// GetTags returns all tags of the repository.
func (repo *Repository) GetTags() ([]string, error) {
cmd := NewCommand("tag", "-l")
if version.Compare(gitVersion, "2.0.0", ">=") {
if version.Compare(gitVersion, "2.4.9", ">=") {
cmd.AddArguments("--sort=-v:taggerdate")
}
@@ -107,7 +107,7 @@ func (repo *Repository) GetTags() ([]string, error) {
tags := strings.Split(stdout, "\n")
tags = tags[:len(tags)-1]
if version.Compare(gitVersion, "2.0.0", "<") {
if version.Compare(gitVersion, "2.4.9", "<") {
version.Sort(tags)
// Reverse order