diff --git a/README.md b/README.md index 461c9ad..9ffef18 100644 --- a/README.md +++ b/README.md @@ -46,6 +46,7 @@ This will take you to a project setup asking for: - `package_command` - This will configure poetry to allow calling the package, `package_name/console:entry_point`, via this command. Generally, this would be the same value as `package_name` - `author_name` - The author of the package - `author_email` - The email for the author +- `git_branch` - The branch to utilize when performing `git init -b ` - `github_repo_name` - For documentation, such as URLs to the issue tracker - `github_user_name` - For documentation, such as URLs to the issue tracker - `python_version`- The Python version that should be defined in `pyproject.toml` diff --git a/cookiecutter.json b/cookiecutter.json index ff2098d..0e1b780 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -7,6 +7,7 @@ "author_email": "author@website.com", "author_name": "Project Author", + "git_branch": "main", "github_repo_user": "", "github_repo_name": "", diff --git a/hooks/post_gen_project.sh b/hooks/post_gen_project.sh index 6248a7c..f76fa35 100644 --- a/hooks/post_gen_project.sh +++ b/hooks/post_gen_project.sh @@ -1,2 +1,2 @@ #!/bin/bash -poetry install && git init && poetry run pre-commit install +poetry install && git init -b {{cookiecutter.git_branch}} && poetry run pre-commit install