mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-27 10:18:12 +00:00
borg config repo ... does not need cache/manifest/key, fixes #3802
thus, we should not use the with_repository decorator to set up
the cache / key / manifest.
this enables running borg config on the repo without the key / key
passphrase (the config itself is in plaintext).
(cherry picked from commit d593d17562
)
This commit is contained in:
parent
ea7c543471
commit
219fce3fe8
1 changed files with 2 additions and 2 deletions
|
@ -1522,8 +1522,8 @@ def do_with_lock(self, args, repository):
|
||||||
# see issue #1867.
|
# see issue #1867.
|
||||||
repository.commit()
|
repository.commit()
|
||||||
|
|
||||||
@with_repository(exclusive=True, cache=True, compatibility=(Manifest.Operation.WRITE,))
|
@with_repository(exclusive=True, manifest=False)
|
||||||
def do_config(self, args, repository, manifest, key, cache):
|
def do_config(self, args, repository):
|
||||||
"""get, set, and delete values in a repository or cache config file"""
|
"""get, set, and delete values in a repository or cache config file"""
|
||||||
|
|
||||||
def repo_validate(section, name, value=None, check_value=True):
|
def repo_validate(section, name, value=None, check_value=True):
|
||||||
|
|
Loading…
Reference in a new issue