Merge pull request #5523 from d5h/allow-eio-on-hardlink-backport-1.1

[1.1] Allow EIO with warning when trying to hardlink
This commit is contained in:
TW 2020-11-29 22:17:31 +01:00 committed by GitHub
commit 22c463f5c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,7 +300,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