Skip to content

Commit 03912a7

Browse files
authored
Fix #26 : Fix Gitlab thousand branches & tags (#27)
1 parent d2d95fb commit 03912a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modules/git_clients.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,14 +440,14 @@ def get_repo_clone_url(self, org: str, repo: str) -> str:
440440
def get_branches(self, org: str, repo: str) -> dict:
441441
check_inputs(org, repo)
442442
branches_commits = {}
443-
for branch in self.gitlab.projects.get(str(org + '/' + repo)).branches.list():
443+
for branch in self.gitlab.projects.get(str(org + '/' + repo)).branches.list(all=True):
444444
branches_commits[branch.name] = branch.commit['id']
445445
return branches_commits
446446

447447
def get_tags(self, org: str, repo: str) -> dict:
448448
check_inputs(org, repo)
449449
tags_commits = {}
450-
for tag in self.gitlab.projects.get(str(org + '/' + repo)).tags.list():
450+
for tag in self.gitlab.projects.get(str(org + '/' + repo)).tags.list(all=True):
451451
tags_commits[tag.name] = tag.commit['id']
452452
return tags_commits
453453

0 commit comments

Comments
 (0)