Skip to content

Commit 4eb24d9

Browse files
authored
fix(vcs) allow '+' in git url path (#765)
1 parent 929ec7a commit 4eb24d9

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/poetry/core/vcs/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
USER = r"[a-zA-Z0-9_.-]+"
1515
RESOURCE = r"[a-zA-Z0-9_.-]+"
1616
PORT = r"\d+"
17-
PATH = r"[%\w~.\-/\\\$]+"
17+
PATH = r"[%\w~.\-\+/\\\$]+"
1818
NAME = r"[%\w~.\-]+"
1919
REV = r"[^@#]+?"
2020
SUBDIR = r"[\w\-/\\]+"

tests/vcs/test_vcs.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,18 @@ def test_normalize_url(url: str, normalized: GitUrl) -> None:
341341
None,
342342
),
343343
),
344+
(
345+
"git+ssh://[email protected]:sdispater/project/+git/my_repo.git",
346+
ParsedUrl(
347+
"ssh",
348+
"git.example.com",
349+
":sdispater/project/+git/my_repo.git",
350+
"git",
351+
None,
352+
"my_repo",
353+
None,
354+
),
355+
),
344356
(
345357
"git+ssh://[email protected]:sdispater/project/my_repo.git#subdirectory=project-dir",
346358
ParsedUrl(

0 commit comments

Comments
 (0)