From 920a47be94738c4b3502df2e9973b9c3854e0ebd Mon Sep 17 00:00:00 2001 From: saattrupdan Date: Mon, 15 Jul 2024 17:22:12 +0200 Subject: [PATCH] fix: Jinja newlines --- {{cookiecutter.project_name}}/makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.project_name}}/makefile b/{{cookiecutter.project_name}}/makefile index 41daf5e..ae69afd 100644 --- a/{{cookiecutter.project_name}}/makefile +++ b/{{cookiecutter.project_name}}/makefile @@ -144,8 +144,6 @@ setup-environment-variables-non-interactive: setup-git: @git config --global init.defaultBranch main @git init - @git config --local user.name ${GIT_NAME} - @git config --local user.email ${GIT_EMAIL} {% if cookiecutter.open_source != 'y' -%} @if [ ${GPG_KEY_ID} = "" ]; then \ echo "No GPG key ID specified. Skipping GPG signing."; \ @@ -155,8 +153,9 @@ setup-git: git config --local user.signingkey ${GPG_KEY_ID}; \ echo "Signed with GPG key ID ${GPG_KEY_ID}."; \ fi - {% endif -%} + @git config --local user.name ${GIT_NAME} + @git config --local user.email ${GIT_EMAIL} install-pre-commit: ## Install pre-commit hooks @{{'poetry run ' if cookiecutter.dependency_manager != 'pip' else '. .venv/bin/activate && '}}pre-commit install