We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 522dde2 commit d71e1c6Copy full SHA for d71e1c6
src/gitsync/gitlab.py
@@ -27,9 +27,12 @@ def get_url_from_project(self) -> str:
27
28
def get_active_branches(self, active_time=timedelta(days=40)) -> List[str]:
29
branches = set([x.name for x in self.__project__.protectedbranches.list()])
30
+ new_branches = set()
31
- if '*' in branches:
32
- branches.remove('*')
+ for branch in branches:
33
+ if '*' not in branch:
34
+ new_branches.add(branch)
35
+ branches = new_branches
36
37
for branch in self.__project__.branches.list(iterator=True):
38
last_commit = datetime.fromisoformat(branch.commit['committed_date'])
0 commit comments