diff options
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 |