From d593d17562435c61804b4d0bcee9ab3f9497b429 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 5 May 2018 14:34:15 +0200 Subject: [PATCH] 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). --- src/borg/archiver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/borg/archiver.py b/src/borg/archiver.py index 7c32a8d0d..0a624875f 100644 --- a/src/borg/archiver.py +++ b/src/borg/archiver.py @@ -1718,8 +1718,8 @@ class Archiver: # see issue #1867. repository.commit() - @with_repository(exclusive=True, cache=True, compatibility=(Manifest.Operation.WRITE,)) - def do_config(self, args, repository, manifest, key, cache): + @with_repository(exclusive=True, manifest=False) + def do_config(self, args, repository): """get, set, and delete values in a repository or cache config file""" def repo_validate(section, name, value=None, check_value=True):