Thanks to visit codestin.com Credit goes to github.com
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 92ce2dc + c598785 commit cf604f6Copy full SHA for cf604f6
1 file changed
pre_commit/util.py
@@ -255,7 +255,7 @@ def handle_remove_readonly(
255
excvalue = exc[1]
256
if (
257
func in (os.rmdir, os.remove, os.unlink) and
258
- excvalue.errno == errno.EACCES
+ excvalue.errno in {errno.EACCES, errno.EPERM}
259
):
260
for p in (path, os.path.dirname(path)):
261
os.chmod(p, os.stat(p).st_mode | stat.S_IWUSR)
0 commit comments