Skip to content

Commit a29fa3a

Browse files
fix Repository init, use absolute path for URL construction
1 parent ed560f7 commit a29fa3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/borg/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def __init__(self, path_or_location, create=False, exclusive=False, lock_wait=1.
9898
if isinstance(path_or_location, Location):
9999
location = path_or_location
100100
if location.proto == "file":
101-
url = Path(location.path).as_uri() # frequently users give without file:// prefix
101+
url = Path(location.path).absolute().as_uri() # frequently users give without file:// prefix
102102
else:
103103
url = location.processed # location as given by user, processed placeholders
104104
else:

0 commit comments

Comments
 (0)