diff --git a/python/tank/descriptor/io_descriptor/git.py b/python/tank/descriptor/io_descriptor/git.py index 8b60f6d17..c8b867fd9 100644 --- a/python/tank/descriptor/io_descriptor/git.py +++ b/python/tank/descriptor/io_descriptor/git.py @@ -264,7 +264,7 @@ def _tmp_clone_then_execute_git_commands(self, commands, depth=None, ref=None): ) finally: log.debug("Cleaning up temp location '%s'" % clone_tmp) - shutil.rmtree(clone_tmp, ignore_errors=True) + filesystem.safe_delete_folder(clone_tmp) def get_system_name(self): """