Merge pull request #5463 from d5h/allow-eio-on-hardlink

Allow EIO with warning when trying to hardlink
This commit is contained in:
TW 2020-11-02 20:52:25 +01:00 committed by GitHub
commit 0e8e614ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -301,7 +301,7 @@ class Repository:
try:
os.link(config_path, old_config_path)
except OSError as e:
if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.EACCES, errno.ENOTSUP):
if e.errno in (errno.EMLINK, errno.ENOSYS, errno.EPERM, errno.EACCES, errno.ENOTSUP, errno.EIO):
logger.warning(link_error_msg)
else:
raise