Fix checkout version equivalent to a remote HEAD

This commit is contained in:
Bruno Postle
2023-05-28 11:02:46 +01:00
parent 5d583741b9
commit 83e97b7205
+3 -3
View File
@@ -336,9 +336,9 @@ class IfcGit:
for branch in lookup[item.hexsha]: for branch in lookup[item.hexsha]:
if branch.name == props.display_branch: if branch.name == props.display_branch:
branch.checkout() branch.checkout()
else: return
# NOTE this is calling the git binary in a subprocess # NOTE this is calling the git binary in a subprocess
repo.git.checkout(item.hexsha) repo.git.checkout(item.hexsha)
@classmethod @classmethod
def delete_collection(cls, blender_collection): def delete_collection(cls, blender_collection):