From 83e97b7205df33d74816460f4c8cbb195ee8b208 Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Sun, 28 May 2023 11:02:46 +0100 Subject: [PATCH] Fix checkout version equivalent to a remote HEAD --- src/blenderbim/blenderbim/tool/ifcgit.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blenderbim/blenderbim/tool/ifcgit.py b/src/blenderbim/blenderbim/tool/ifcgit.py index 80520c6845..aa9cede3c8 100644 --- a/src/blenderbim/blenderbim/tool/ifcgit.py +++ b/src/blenderbim/blenderbim/tool/ifcgit.py @@ -336,9 +336,9 @@ class IfcGit: for branch in lookup[item.hexsha]: if branch.name == props.display_branch: branch.checkout() - else: - # NOTE this is calling the git binary in a subprocess - repo.git.checkout(item.hexsha) + return + # NOTE this is calling the git binary in a subprocess + repo.git.checkout(item.hexsha) @classmethod def delete_collection(cls, blender_collection):