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.
1 parent e4d2696 commit c801755Copy full SHA for c801755
gitdb/db/loose.py
@@ -233,9 +233,10 @@ def store(self, istream):
233
# make sure its readable for all ! It started out as rw-- tmp file
234
# but needs to be rwrr
235
for _ in range(3):
236
- suppress(PermissionError):
+ with suppress(PermissionError):
237
chmod(obj_path, self.new_objects_mode)
238
break
239
+ time.sleep(0.5)
240
else:
241
raise PermissionError("Impossible to apply `chmod` to file {}".format(obj_path))
242
# END handle dry_run
0 commit comments