summaryrefslogtreecommitdiff
path: root/git/util.py
diff options
context:
space:
mode:
authorKostis Anagnostopoulos <ankostis@gmail.com>2016-09-27 22:07:19 +0200
committerKostis Anagnostopoulos <ankostis@gmail.com>2016-09-28 03:35:38 +0200
commit137ee6ef22c4e6480f95972ef220d1832cdc709a (patch)
tree20d611a4746b5fc4d188673ec309d24e29be5683 /git/util.py
parent434505f1b6f882978de17009854d054992b827cf (diff)
downloadgitpython-137ee6ef22c4e6480f95972ef220d1832cdc709a.tar.gz
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).
Diffstat (limited to 'git/util.py')
-rw-r--r--git/util.py2
1 files changed, 1 insertions, 1 deletions
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)