mirror of
https://github.com/gogs/gogs.git
synced 2025-12-21 07:39:59 +01:00
vendor: update github.com/gogs/git-module
This commit is contained in:
2
vendor/github.com/gogs/git-module/git.go
generated
vendored
2
vendor/github.com/gogs/git-module/git.go
generated
vendored
@@ -10,7 +10,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const _VERSION = "0.6.6"
|
||||
const _VERSION = "0.6.7"
|
||||
|
||||
func Version() string {
|
||||
return _VERSION
|
||||
|
||||
2
vendor/github.com/gogs/git-module/repo_tag.go
generated
vendored
2
vendor/github.com/gogs/git-module/repo_tag.go
generated
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user