From 3a93b15b553969a3400fb46eaf0c687982f37167 Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Sun, 11 Jun 2023 20:49:55 +0100 Subject: [PATCH] BBIM show all fetched remote Git branches (#3096) --- src/blenderbim/blenderbim/bim/module/ifcgit/prop.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/ifcgit/prop.py b/src/blenderbim/blenderbim/bim/module/ifcgit/prop.py index ca9266d0e8..8273ac7cfa 100644 --- a/src/blenderbim/blenderbim/bim/module/ifcgit/prop.py +++ b/src/blenderbim/blenderbim/bim/module/ifcgit/prop.py @@ -22,8 +22,9 @@ def git_branches(self, context): IfcGitData.data["branch_names"] = ["main"] + IfcGitData.data["branch_names"] if IfcGitData.data["remotes"]: - props = context.scene.IfcGitProperties - IfcGitData.data["branch_names"] += [r.name for r in IfcGitData.data["remotes"][props.select_remote].refs] + for remote in IfcGitData.data["remotes"]: + for remote_branch in remote.refs: + IfcGitData.data["branch_names"].append(remote_branch.name) return [(myname, myname, myname) for myname in IfcGitData.data["branch_names"]]