diff options
author | Unknwon <u@gogs.io> | 2017-03-10 14:12:46 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-03-10 14:12:46 -0500 |
commit | 451aef7a1c177b58c4519239a65dbfbab32b4888 (patch) | |
tree | c1bcd9b767c23843733005a7794531c82039dbee /vendor/github.com/gogits | |
parent | 22882d7c04b13979f5cf50f93b4fccbc36df342d (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/github.com/gogits')
-rw-r--r-- | vendor/github.com/gogits/git-module/git.go | 2 | ||||
-rw-r--r-- | vendor/github.com/gogits/git-module/repo_tag.go | 2 |
2 files changed, 2 insertions, 2 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 |