mirror of https://github.com/gogs/gogs.git
vendor: update github.com/gogs/git-module
parent
992ea5802a
commit
f4f4edf276
2
gogs.go
2
gogs.go
|
@ -16,7 +16,7 @@ import (
|
|||
"github.com/gogs/gogs/pkg/setting"
|
||||
)
|
||||
|
||||
const APP_VER = "0.11.58.0618"
|
||||
const APP_VER = "0.11.58.0625"
|
||||
|
||||
func init() {
|
||||
setting.AppVer = APP_VER
|
||||
|
|
|
@ -1 +1 @@
|
|||
0.11.58.0618
|
||||
0.11.58.0625
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
const _VERSION = "0.6.7"
|
||||
const _VERSION = "0.6.8"
|
||||
|
||||
func Version() string {
|
||||
return _VERSION
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -207,10 +207,10 @@
|
|||
"revisionTime": "2017-03-01T03:54:11Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "8KekujhL9uUvM97PP6jToeeQi6M=",
|
||||
"checksumSHA1": "dlSQtPgdbhxV8VAcE5YV3aLgSew=",
|
||||
"path": "github.com/gogs/git-module",
|
||||
"revision": "abc97c40967942aec90e470834436ff69e1888f2",
|
||||
"revisionTime": "2018-06-09T01:58:34Z"
|
||||
"revision": "73275fa99ef150d697b7fc81245e22b0319622ae",
|
||||
"revisionTime": "2018-06-25T11:56:28Z"
|
||||
},
|
||||
{
|
||||
"checksumSHA1": "MLO0PyrK2MUO6A7Z9PxWuu43C/A=",
|
||||
|
|
Loading…
Reference in New Issue