GitPython version - 3.1.46 Python version - 3.13.9
Basically the following fails
import shutil from git import repo repo = Repo("some_url", "some_directory") print(repo.head.commit.hexsha) shutil.rmtree("some_directory")
Getting an error shutils rmtree failed and was not able to the delete the .git inside "some_directory"
Which platform is this on? I must presume Windows, and if so, that's a known issue with no solution.
Activity
Byron commented on Feb 19, 2026
Which platform is this on? I must presume Windows, and if so, that's a known issue with no solution.