Skip to content

Commit 29226c4

Browse files
committed
git.credentials: parse path from URL
1 parent 3b05d6d commit 29226c4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/scmrepo/git/credentials.py

+2
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,8 @@ def __init__(
493493
self.host = self.host or f"{hostname}{port}"
494494
self.username = self.username or parsed.username
495495
self.password = self.password or parsed.password
496+
if parsed.path:
497+
self.path = self.path or parsed.path
496498

497499
def __getitem__(self, key: object) -> str:
498500
if isinstance(key, str):

0 commit comments

Comments
 (0)