Skip to content

Commit c801755

Browse files
Update loose.py
1 parent e4d2696 commit c801755

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gitdb/db/loose.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,10 @@ def store(self, istream):
233233
# make sure its readable for all ! It started out as rw-- tmp file
234234
# but needs to be rwrr
235235
for _ in range(3):
236-
suppress(PermissionError):
236+
with suppress(PermissionError):
237237
chmod(obj_path, self.new_objects_mode)
238238
break
239+
time.sleep(0.5)
239240
else:
240241
raise PermissionError("Impossible to apply `chmod` to file {}".format(obj_path))
241242
# END handle dry_run

0 commit comments

Comments
 (0)