From 321be8b185ec6aebd5965169262dd09cbd83fda0 Mon Sep 17 00:00:00 2001 From: Emil Styrke Date: Fri, 1 Mar 2024 09:13:25 +0100 Subject: [PATCH] docs: add git subdirectory example to add command --- src/poetry/console/commands/add.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/poetry/console/commands/add.py b/src/poetry/console/commands/add.py index e02af59caa0..a5fcbc7a2ca 100644 --- a/src/poetry/console/commands/add.py +++ b/src/poetry/console/commands/add.py @@ -79,6 +79,8 @@ class AddCommand(InstallerCommand, InitCommand): - A git url (git+https://github.com/python-poetry/poetry.git) - A git url with a revision\ (git+https://github.com/python-poetry/poetry.git#develop) + - A subdirectory of a git repository\ + (git+https://github.com/python-poetry/poetry.git#subdirectory=tests/fixtures/sample_project) - A git SSH url (git+ssh://github.com/python-poetry/poetry.git) - A git SSH url with a revision\ (git+ssh://github.com/python-poetry/poetry.git#develop)