mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-22 22:22:27 +00:00
Merge pull request #1708 from ThomasWaldmann/commit-previous-location
update changed repo location immediately after acceptance
This commit is contained in:
commit
76ade6f9fe
1 changed files with 3 additions and 0 deletions
|
@ -77,6 +77,9 @@ def __init__(self, repository, key, manifest, path=None, sync=True, do_files=Fal
|
|||
if not yes(msg, false_msg="Aborting.", invalid_msg="Invalid answer, aborting.",
|
||||
retry=False, env_var_override='BORG_RELOCATED_REPO_ACCESS_IS_OK'):
|
||||
raise self.RepositoryAccessAborted()
|
||||
# adapt on-disk config immediately if the new location was accepted
|
||||
self.begin_txn()
|
||||
self.commit()
|
||||
|
||||
if sync and self.manifest.id != self.manifest_id:
|
||||
# If repository is older than the cache something fishy is going on
|
||||
|
|
Loading…
Reference in a new issue