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