1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-26 09:47:58 +00:00

with_repository: invert_fake arg is not used

This commit is contained in:
Thomas Waldmann 2022-08-11 06:19:23 +02:00
parent 73d901a22e
commit 8bebf65bc2

View file

@ -81,7 +81,6 @@ def compat_check(*, create, manifest, key, cache, compatibility, decorator_name)
def with_repository(
fake=False,
invert_fake=False,
create=False,
lock=True,
exclusive=False,
@ -133,7 +132,7 @@ def wrapper(self, args, **kwargs):
append_only = getattr(args, "append_only", False)
storage_quota = getattr(args, "storage_quota", None)
make_parent_dirs = getattr(args, "make_parent_dirs", False)
if argument(args, fake) ^ invert_fake:
if argument(args, fake):
return method(self, args, repository=None, **kwargs)
repository = get_repository(