mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
BBIM show all fetched remote Git branches (#3096)
This commit is contained in:
@@ -22,8 +22,9 @@ def git_branches(self, context):
|
|||||||
IfcGitData.data["branch_names"] = ["main"] + IfcGitData.data["branch_names"]
|
IfcGitData.data["branch_names"] = ["main"] + IfcGitData.data["branch_names"]
|
||||||
|
|
||||||
if IfcGitData.data["remotes"]:
|
if IfcGitData.data["remotes"]:
|
||||||
props = context.scene.IfcGitProperties
|
for remote in IfcGitData.data["remotes"]:
|
||||||
IfcGitData.data["branch_names"] += [r.name for r in IfcGitData.data["remotes"][props.select_remote].refs]
|
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"]]
|
return [(myname, myname, myname) for myname in IfcGitData.data["branch_names"]]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user