BBIM show all fetched remote Git branches (#3096)

This commit is contained in:
Bruno Postle
2023-06-11 20:49:55 +01:00
parent 83cd00271b
commit 3a93b15b55
@@ -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"]]