Skip to content

Commit

Permalink
vcs: allow hidden directories on Windows bare repos
Browse files Browse the repository at this point in the history
  • Loading branch information
abn committed May 4, 2022
1 parent 722d439 commit 435adc7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/poetry/core/vcs/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
USER = r"[a-zA-Z0-9_.-]+"
RESOURCE = r"[a-zA-Z0-9_.-]+"
PORT = r"\d+"
PATH = r"[\w~.\-/\\]+"
PATH = r"[\w~.\-/\\\$]+"
NAME = r"[\w~.\-]+"
REV = r"[^@#]+?"
SUBDIR = r"[\w\-/\\]+"
Expand Down
6 changes: 6 additions & 0 deletions tests/vcs/test_vcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@
"git+file://C:\\Users\\hello\\testing.git#zkat/windows-files",
GitUrl("file://C:\\Users\\hello\\testing.git", "zkat/windows-files", None),
),
# hidden directories on Windows ues $ in their path
# python-poetry/poetry#5493
(
"git+file://C:\\Users\\hello$\\testing.git#zkat/windows-files",
GitUrl("file://C:\\Users\\hello$\\testing.git", "zkat/windows-files", None),
),
(
"git+https://git.example.com/sdispater/project/my_repo.git",
GitUrl("https://git.example.com/sdispater/project/my_repo.git", None, None),
Expand Down

0 comments on commit 435adc7

Please sign in to comment.