diff --git a/src/bonsai/bonsai/tool/ifcgit.py b/src/bonsai/bonsai/tool/ifcgit.py index d04aa820cf..e7f2991034 100644 --- a/src/bonsai/bonsai/tool/ifcgit.py +++ b/src/bonsai/bonsai/tool/ifcgit.py @@ -79,7 +79,11 @@ class IfcGit: else: return None - if IfcGitRepo.repo is not None and os.path.exists(IfcGitRepo.repo.git_dir) and IfcGitRepo.repo.working_dir == path_dir: + if ( + IfcGitRepo.repo is not None + and os.path.exists(IfcGitRepo.repo.git_dir) + and IfcGitRepo.repo.working_dir == path_dir + ): return IfcGitRepo.repo try: