Skip to content

hatch new does not use git's user.email setting if defined via an includeIf config file #968

Open
@doolio

Description

@doolio

My git config is as follows:

image

You can see that I define a separate user.email depending on which forge I'm working with. With this any repo created under a github directory will use the user.email defined in the ~/.gitconfig-github file etc.

However, hatch new does not see this setting because the project directory it creates is not a git repo. In fact, hatch new I believe would have to create the project directory and initialise it as a git repo before creating the pyproject.toml with the correct user.name. Could hatch new be updated to accommodate such a git configuration? I think having the project directory also a repository when it is created would be a welcome feature as well. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions