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:
parent
54fac33e69
commit
333663c39c
1 changed files with 2 additions and 1 deletions
|
@ -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 "",
|
||||
|
|
Loading…
Reference in a new issue