From 38637d102ac9ddc49571423fff7006d22b44c98b 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 (cherry picked from commit 54d52e42000967714e77a2dc95b84194bbc59bc4) --- 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)