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:
parent
27bfa40f31
commit
bf24f8f9b6
1 changed files with 1 additions and 0 deletions
|
@ -136,6 +136,7 @@ def main():
|
||||||
run_git_fetch_and_restart_if_changed(remote_commits, target_branch)
|
run_git_fetch_and_restart_if_changed(remote_commits, target_branch)
|
||||||
branches = [ref[len("refs/remotes/%s/" % REMOTE):] for ref in run_git(
|
branches = [ref[len("refs/remotes/%s/" % REMOTE):] for ref in run_git(
|
||||||
"rev-parse", "--symbolic-full-name", "--remotes=%s" % REMOTE)]
|
"rev-parse", "--symbolic-full-name", "--remotes=%s" % REMOTE)]
|
||||||
|
branches = list(set(branches))
|
||||||
with TemporaryDirectory(prefix="%s-" % PROG) as temp:
|
with TemporaryDirectory(prefix="%s-" % PROG) as temp:
|
||||||
branch_docs = {}
|
branch_docs = {}
|
||||||
for branch in branches[:]:
|
for branch in branches[:]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue