Merge pull request #4949 from Gu1nness/4934-borg-extract-is-confusing

Fix #4934 : The path given by borg extract --strip-components --list is not confusing anymore
This commit is contained in:
TW 2020-02-29 17:30:02 +01:00 committed by GitHub
commit a5152012f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ class Archiver:
except BackupOSError as e:
self.print_warning('%s: %s', remove_surrogates(dir_item.path), e)
if output_list:
logging.getLogger('borg.output.list').info(remove_surrogates(orig_path))
logging.getLogger('borg.output.list').info(remove_surrogates(item.path))
try:
if dry_run:
archive.extract_item(item, dry_run=True, pi=pi)