1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-01-01 12:45:34 +00:00

Location.canonical_path: fix protocol, see #8446

% borg repo-info
Location: rclone://None/./pcloud:justtesting
...
This commit is contained in:
Thomas Waldmann 2024-10-02 18:46:01 +02:00
parent 54fac33e69
commit 333663c39c
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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 "",