We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8e009d + 79b705f commit cd79e2aCopy full SHA for cd79e2a
gitdb/db/loose.py
@@ -225,16 +225,12 @@ def store(self, istream):
225
if not isdir(obj_dir):
226
mkdir(obj_dir)
227
# END handle destination directory
228
- # rename onto existing doesn't work on windows
229
- if os.name == 'nt':
230
- if isfile(obj_path):
231
- remove(tmp_path)
232
- else:
233
- rename(tmp_path, obj_path)
234
- # end rename only if needed
+ # rename onto existing doesn't work on NTFS
+ if isfile(obj_path):
+ remove(tmp_path)
235
else:
236
rename(tmp_path, obj_path)
237
- # END handle win32
+ # end rename only if needed
238
239
# make sure its readable for all ! It started out as rw-- tmp file
240
# but needs to be rwrr
0 commit comments