aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/gogs/git-module
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gogs/git-module')
-rw-r--r--vendor/github.com/gogs/git-module/git.go2
-rw-r--r--vendor/github.com/gogs/git-module/repo_tag.go4
2 files changed, 3 insertions, 3 deletions
diff --git a/vendor/github.com/gogs/git-module/git.go b/vendor/github.com/gogs/git-module/git.go
index 5b141846..de1da49a 100644
--- a/vendor/github.com/gogs/git-module/git.go
+++ b/vendor/github.com/gogs/git-module/git.go
@@ -10,7 +10,7 @@ import (
"time"
)
-const _VERSION = "0.6.7"
+const _VERSION = "0.6.8"
func Version() string {
return _VERSION
diff --git a/vendor/github.com/gogs/git-module/repo_tag.go b/vendor/github.com/gogs/git-module/repo_tag.go
index 888d9894..57de8eb3 100644
--- a/vendor/github.com/gogs/git-module/repo_tag.go
+++ b/vendor/github.com/gogs/git-module/repo_tag.go
@@ -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