summaryrefslogtreecommitdiffstats
path: root/modules/context/repo.go
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-09-10 19:30:37 +0200
committerGitHub <noreply@github.com>2021-09-10 19:30:37 +0200
commit77f604a9284887758e604e92d2c9b40697db0a23 (patch)
tree15b9d310d57af08ad5f286d07f8c54233f69611a /modules/context/repo.go
parent9ca0e7905c24f18ed246e65397589f0f41b50506 (diff)
downloadgitea-77f604a9284887758e604e92d2c9b40697db0a23.tar.gz
gitea-77f604a9284887758e604e92d2c9b40697db0a23.zip
Add skip and limit to git.GetTags (#16897)
* Make GetTags() api similar to GetBranches() * Use it for Tag/Release page
Diffstat (limited to 'modules/context/repo.go')
-rw-r--r--modules/context/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/repo.go b/modules/context/repo.go
index df71638350..89ff890cc3 100644
--- a/modules/context/repo.go
+++ b/modules/context/repo.go
@@ -547,7 +547,7 @@ func RepoAssignment(ctx *Context) (cancel context.CancelFunc) {
return
}
- tags, err := ctx.Repo.GitRepo.GetTags()
+ tags, err := ctx.Repo.GitRepo.GetTags(0, 0)
if err != nil {
ctx.ServerError("GetTags", err)
return