mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 14:31:39 +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):
|
def execute(self, context):
|
||||||
|
|
||||||
core.discard_uncomitted(tool.IfcGit, tool.Ifc)
|
core.discard_uncommitted(tool.IfcGit, tool.Ifc)
|
||||||
refresh()
|
refresh()
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ def clone_repo(ifcgit, remote_url, local_folder, operator):
|
|||||||
ifcgit.load_anyifc(repo)
|
ifcgit.load_anyifc(repo)
|
||||||
|
|
||||||
|
|
||||||
def discard_uncomitted(ifcgit, ifc):
|
def discard_uncommitted(ifcgit, ifc):
|
||||||
path_ifc = ifc.get_path()
|
path_ifc = ifc.get_path()
|
||||||
# NOTE this is calling the git binary in a subprocess
|
# NOTE this is calling the git binary in a subprocess
|
||||||
ifcgit.git_checkout(path_ifc)
|
ifcgit.git_checkout(path_ifc)
|
||||||
|
|||||||
@@ -130,6 +130,7 @@ class IfcGit:
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create_new_branch(cls):
|
def create_new_branch(cls):
|
||||||
|
"""Convert a detached HEAD into a branch"""
|
||||||
props = bpy.context.scene.IfcGitProperties
|
props = bpy.context.scene.IfcGitProperties
|
||||||
repo = IfcGitRepo.repo
|
repo = IfcGitRepo.repo
|
||||||
new_branch = repo.create_head(props.new_branch_name)
|
new_branch = repo.create_head(props.new_branch_name)
|
||||||
|
|||||||
Reference in New Issue
Block a user