BlenderBIM IFC Git fix typo in function name

This commit is contained in:
Bruno Postle
2023-12-02 23:59:07 +00:00
parent 4f64b658b0
commit 1f4c2e0989
3 changed files with 3 additions and 2 deletions
@@ -96,7 +96,7 @@ class DiscardUncommitted(bpy.types.Operator):
def execute(self, context):
core.discard_uncomitted(tool.IfcGit, tool.Ifc)
core.discard_uncommitted(tool.IfcGit, tool.Ifc)
refresh()
return {"FINISHED"}
+1 -1
View File
@@ -19,7 +19,7 @@ def clone_repo(ifcgit, remote_url, local_folder, operator):
ifcgit.load_anyifc(repo)
def discard_uncomitted(ifcgit, ifc):
def discard_uncommitted(ifcgit, ifc):
path_ifc = ifc.get_path()
# NOTE this is calling the git binary in a subprocess
ifcgit.git_checkout(path_ifc)
+1
View File
@@ -130,6 +130,7 @@ class IfcGit:
@classmethod
def create_new_branch(cls):
"""Convert a detached HEAD into a branch"""
props = bpy.context.scene.IfcGitProperties
repo = IfcGitRepo.repo
new_branch = repo.create_head(props.new_branch_name)