diff options
author | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-27 22:07:19 +0200 |
---|---|---|
committer | Kostis Anagnostopoulos <ankostis@gmail.com> | 2016-09-28 03:35:38 +0200 |
commit | 137ee6ef22c4e6480f95972ef220d1832cdc709a (patch) | |
tree | 20d611a4746b5fc4d188673ec309d24e29be5683 /git/test/test_reflog.py | |
parent | 434505f1b6f882978de17009854d054992b827cf (diff) | |
download | gitpython-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/test/test_reflog.py')
-rw-r--r-- | git/test/test_reflog.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git/test/test_reflog.py b/git/test/test_reflog.py index 3571e083..dffedf3b 100644 --- a/git/test/test_reflog.py +++ b/git/test/test_reflog.py @@ -7,11 +7,10 @@ from git.refs import ( RefLogEntry, RefLog ) -from git.util import Actor +from git.util import Actor, rmtree from gitdb.util import hex_to_bin import tempfile -import shutil import os @@ -104,4 +103,4 @@ class TestRefLog(TestBase): # END for each reflog # finally remove our temporary data - shutil.rmtree(tdir) + rmtree(tdir) |