Skip to content

Commit 214b2c5

Browse files
Fix regex
1 parent 2f12142 commit 214b2c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/poetry/vcs/git/backend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def _clone_submodules(cls, repo: Repo) -> None:
333333
modules_config = repo_root.joinpath(".gitmodules")
334334

335335
# A relative URL by definition starts with ../ or ./
336-
relative_submodule_regex = re.compile(r"^(\.{1,2})/?")
336+
relative_submodule_regex = re.compile(r"^\.{1,2}/")
337337

338338
if modules_config.exists():
339339
config = ConfigFile.from_path(str(modules_config))

0 commit comments

Comments
 (0)