mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 02:08:54 +00:00
with_repository: invert_fake arg is not used
This commit is contained in:
parent
73d901a22e
commit
8bebf65bc2
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue