From 04c7ffe1f93a9404572ad603381a0e971b2915ba Mon Sep 17 00:00:00 2001 From: Alix Lourme Date: Sat, 28 Feb 2026 00:05:21 +0100 Subject: [PATCH] Fix #26 : Fix Gitlab thousand branches & tags --- modules/git_clients.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/git_clients.py b/modules/git_clients.py index b4d1521..1fe7779 100644 --- a/modules/git_clients.py +++ b/modules/git_clients.py @@ -440,14 +440,14 @@ def get_repo_clone_url(self, org: str, repo: str) -> str: def get_branches(self, org: str, repo: str) -> dict: check_inputs(org, repo) branches_commits = {} - for branch in self.gitlab.projects.get(str(org + '/' + repo)).branches.list(): + for branch in self.gitlab.projects.get(str(org + '/' + repo)).branches.list(all=True): branches_commits[branch.name] = branch.commit['id'] return branches_commits def get_tags(self, org: str, repo: str) -> dict: check_inputs(org, repo) tags_commits = {} - for tag in self.gitlab.projects.get(str(org + '/' + repo)).tags.list(): + for tag in self.gitlab.projects.get(str(org + '/' + repo)).tags.list(all=True): tags_commits[tag.name] = tag.commit['id'] return tags_commits