From 137ee6ef22c4e6480f95972ef220d1832cdc709a Mon Sep 17 00:00:00 2001 From: Kostis Anagnostopoulos Date: Tue, 27 Sep 2016 22:07:19 +0200 Subject: Win, #519: FIX with_rw_directory() to remove read-only dirs + Stop using gitdb's respective helper. + Fix files chmod(555) which CANNOT DELETE on Windows (but do on Linux). --- git/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/util.py') diff --git a/git/util.py b/git/util.py index f931abe2..eb5a6ac1 100644 --- a/git/util.py +++ b/git/util.py @@ -68,7 +68,7 @@ def rmtree(path): os.chmod(path, stat.S_IWUSR) func(path) else: - raise + raise FileExistsError("Cannot delete '%s'", path) # END end onerror return shutil.rmtree(path, False, onerror) -- cgit v1.2.3