From 6840e7ebbec0c321b3b8522ccb7f0d4e31d4078b Mon Sep 17 00:00:00 2001 From: Benoit Perigaud <8754100+b-per@users.noreply.github.com> Date: Thu, 5 Oct 2023 12:09:19 +0200 Subject: [PATCH] Move git commands --- modules/github/main.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/github/main.tf b/modules/github/main.tf index 1c9a941..d7872e8 100644 --- a/modules/github/main.tf +++ b/modules/github/main.tf @@ -44,9 +44,10 @@ resource "null_resource" "post_repo_creation" { cd cruft-template cruft create ${var.cruft_template_url} --extra-context '{"project_name": "${var.project_name}", "project_slug": "${var.project_slug}"}' --no-input cd ${var.project_slug} + git config --global init.defaultBranch main + git init git config user.email "nomail@mail.com" git config user.name "No name" - git init git add * git commit -m "Initial commit from Terraform and cruft" git branch -M main