mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
BlenderBIM IFC Git fix typo in function name
This commit is contained in:
@@ -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"}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user