Skip to content

git init is mandatory #562

@samcunliffe

Description

@samcunliffe

Describe the Bug

Despite that we allow users to say "no" to the question about initialising a git repository, we have setuptools-scm in our pyproject.toml so one can't run

uv pip install -e .

if one hasn't initialised a repo. It might be simplest "just" to check that git is installed and error if not. But as-is, there's a bug in the questions vs. pyproject.toml.

To Reproduce

Cookiecut a project, say "no" to the git init question and see what things break 😄.

Expected Behaviour

No response

Actual Behaviour

No response

Version In Use

v1.0.1

Additional Context

- Cookiecutter version: 2.6.0
- Operating system: macOS
- Python version: 3.13

Though I'm pretty confident this isn't an OS/version-dependent problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions