File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 88import os
99from stat import S_ISLNK
1010import subprocess
11- import sys
1211import tempfile
1312
1413from git .compat import (
1817 force_bytes ,
1918 defenc ,
2019 mviter ,
21- is_win
2220)
2321from git .exc import (
2422 GitCommandError ,
@@ -128,13 +126,7 @@ def _set_cache_(self, attr):
128126 lfd .rollback ()
129127 # END exception handling
130128
131- # Here it comes: on windows in python 2.5, memory maps aren't closed properly
132- # Hence we are in trouble if we try to delete a file that is memory mapped,
133- # which happens during read-tree.
134- # In this case, we will just read the memory in directly.
135- # Its insanely bad ... I am disappointed !
136- allow_mmap = (is_win or sys .version_info [1 ] > 5 )
137- stream = file_contents_ro (fd , stream = True , allow_mmap = allow_mmap )
129+ stream = file_contents_ro (fd , stream = True , allow_mmap = True )
138130
139131 try :
140132 self ._deserialize (stream )
You can’t perform that action at this time.
0 commit comments