diff options
author | unknown <byron@.(none)> | 2010-07-02 19:34:26 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-07-02 19:38:37 +0200 |
commit | a4287f65878000b42d11704692f9ea3734014b4c (patch) | |
tree | 75a52b5874e74422e977559af4b0fa32b3c429a1 /lib/git/util.py | |
parent | f683c6623f73252645bb2819673046c9d397c567 (diff) | |
download | gitpython-a4287f65878000b42d11704692f9ea3734014b4c.tar.gz |
win32 compatability adjustments
Diffstat (limited to 'lib/git/util.py')
-rw-r--r-- | lib/git/util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/git/util.py b/lib/git/util.py index 54c3414e..fcb50585 100644 --- a/lib/git/util.py +++ b/lib/git/util.py @@ -214,6 +214,11 @@ class LockFile(object): # instead of failing, to make it more usable. lfp = self._lock_file_path() try: + # on bloody windows, the file needs write permissions to be removable. + # Why ... + if os.name == 'nt': + os.chmod(lfp, 0777) + # END handle win32 os.remove(lfp) except OSError: pass |