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/cmd.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/cmd.py')
-rw-r--r-- | git/cmd.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1013,6 +1013,10 @@ class Git(LazyMixin): Currently persistent commands will be interrupted. :return: self""" + for cmd in (self.cat_file_all, self.cat_file_header): + if cmd: + cmd.__del__() + self.cat_file_all = None self.cat_file_header = None return self |