Skip to content

Fix nested templates in Git repository#1922

Merged
ericof merged 1 commit intocookiecutter:mainfrom
BTatlock:BTatlock-patch-1
Sep 21, 2023
Merged

Fix nested templates in Git repository#1922
ericof merged 1 commit intocookiecutter:mainfrom
BTatlock:BTatlock-patch-1

Conversation

@BTatlock
Copy link
Copy Markdown
Contributor

Cookiecutter fails when using Git repositories with nested templates.

This ensures the second call to cookiecutter uses the existing clone rather than issuing an invalid Git clone call, which references a subdirectory of a repository rather than a valid repository.

An alternative approach would be to use the directory parameter to specify the path within the Git repository.

Cookiecutter fails when using Git repositories with nested templates.

This ensures the second call to `cookiecutter` uses the existing clone rather than issuing an invalid Git clone call, which references a subdirectory of a repository rather than a valid repository.
@ericof ericof added this to the 2.4.0 milestone Sep 21, 2023
@ericof ericof added the bug This issue/PR relates to a bug. label Sep 21, 2023
@ericof ericof self-requested a review September 21, 2023 22:17
@ericof ericof merged commit 40068d9 into cookiecutter:main Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug This issue/PR relates to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants