From 333663c39c6a966912a15a00d98f309484ca5f0a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Wed, 2 Oct 2024 18:46:01 +0200 Subject: [PATCH] Location.canonical_path: fix protocol, see #8446 % borg repo-info Location: rclone://None/./pcloud:justtesting ... --- src/borg/helpers/parseformat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/borg/helpers/parseformat.py b/src/borg/helpers/parseformat.py index 171e1462d..f4d028bd7 100644 --- a/src/borg/helpers/parseformat.py +++ b/src/borg/helpers/parseformat.py @@ -616,7 +616,8 @@ def canonical_path(self): path = "/./" + self.path # /./x = path x relative to cwd else: path = self.path - return "ssh://{}{}{}{}".format( + return "{}://{}{}{}{}".format( + self.proto if self.proto else "???", f"{self.user}@" if self.user else "", self._host, # needed for ipv6 addrs f":{self.port}" if self.port else "",