1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Filter duplicate branch names

This commit is contained in:
Unrud 2025-04-13 00:03:55 +02:00
parent 27bfa40f31
commit bf24f8f9b6

View file

@ -136,6 +136,7 @@ def main():
run_git_fetch_and_restart_if_changed(remote_commits, target_branch)
branches = [ref[len("refs/remotes/%s/" % REMOTE):] for ref in run_git(
"rev-parse", "--symbolic-full-name", "--remotes=%s" % REMOTE)]
branches = list(set(branches))
with TemporaryDirectory(prefix="%s-" % PROG) as temp:
branch_docs = {}
for branch in branches[:]: