aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-10 14:12:46 -0500
committerUnknwon <u@gogs.io>2017-03-10 14:12:46 -0500
commit451aef7a1c177b58c4519239a65dbfbab32b4888 (patch)
treec1bcd9b767c23843733005a7794531c82039dbee /vendor
parent22882d7c04b13979f5cf50f93b4fccbc36df342d (diff)
release: improve page load performance
Previously, we load all releases of a repository which could hurt performance when the repository has a lot of releases. Now we're able to only load releases in current page view we need to show by matching with 'tag_name'.
Diffstat (limited to 'vendor')
-rw-r--r--vendor/github.com/gogits/git-module/git.go2
-rw-r--r--vendor/github.com/gogits/git-module/repo_tag.go2
-rw-r--r--vendor/vendor.json6
3 files changed, 5 insertions, 5 deletions
diff --git a/vendor/github.com/gogits/git-module/git.go b/vendor/github.com/gogits/git-module/git.go
index fc834196..3eef5db5 100644
--- a/vendor/github.com/gogits/git-module/git.go
+++ b/vendor/github.com/gogits/git-module/git.go
@@ -10,7 +10,7 @@ import (
"time"
)
-const _VERSION = "0.4.12"
+const _VERSION = "0.4.13"
func Version() string {
return _VERSION
diff --git a/vendor/github.com/gogits/git-module/repo_tag.go b/vendor/github.com/gogits/git-module/repo_tag.go
index b7e96bdb..4cef496b 100644
--- a/vendor/github.com/gogits/git-module/repo_tag.go
+++ b/vendor/github.com/gogits/git-module/repo_tag.go
@@ -171,7 +171,7 @@ func (repo *Repository) GetTagsAfter(after string, limit int) (*TagsResult, erro
}
if allTags[i] == after {
hasMatch = true
- if limit > 0 && i-limit > 0 {
+ if limit > 0 && i-limit >= 0 {
previousAfter = allTags[i-limit]
}
continue
diff --git a/vendor/vendor.json b/vendor/vendor.json
index 7bccaadb..4f45a491 100644
--- a/vendor/vendor.json
+++ b/vendor/vendor.json
@@ -159,10 +159,10 @@
"revisionTime": "2016-08-10T03:50:02Z"
},
{
- "checksumSHA1": "RnWB5UDcTpSGepvWnwic1SyRZrc=",
+ "checksumSHA1": "sygMoTVpNmOTbsnZbgLR904p5GE=",
"path": "github.com/gogits/git-module",
- "revision": "1b9552bab7499e5cbd96f6b550aaa0038faf6b67",
- "revisionTime": "2017-02-19T18:16:29Z"
+ "revision": "2c083b82191752340c76271876671e18130ad662",
+ "revisionTime": "2017-03-10T19:06:55Z"
},
{
"checksumSHA1": "Rvj0LCHGhFQyIM7MzBPt1iRP89c=",