IFC Git close and reopen repo after cloning

Apparently on Windows clone can leave 'stale processes'
This commit is contained in:
Bruno Postle
2026-01-30 20:07:04 +00:00
parent 6409f41cdf
commit 611a898ada
+4 -1
View File
@@ -64,10 +64,13 @@ class IfcGit:
@classmethod
def clone_repo(cls, remote_url: str, local_folder: str) -> git.Repo:
IfcGitRepo.repo = git.Repo.clone_from(
repo = git.Repo.clone_from(
url=remote_url,
to_path=local_folder,
)
# Close the repo to release stale subprocess
repo.close()
IfcGitRepo.repo = git.Repo(local_folder)
cls.config_info_attributes(IfcGitRepo.repo)
return IfcGitRepo.repo