summaryrefslogtreecommitdiffstats
path: root/modules/repository
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/repository
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/repository')
-rw-r--r--modules/repository/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/repo.go b/modules/repository/repo.go
index 6b87039775..00413549ee 100644
--- a/modules/repository/repo.go
+++ b/modules/repository/repo.go
@@ -250,7 +250,7 @@ func SyncReleasesWithTags(repo *models.Repository, gitRepo *git.Repository) erro
}
}
}
- tags, err := gitRepo.GetTags()
+ tags, err := gitRepo.GetTags(0, 0)
if err != nil {
return fmt.Errorf("GetTags: %v", err)
}