Skip to content

Commit

Permalink
Merge pull request #2 from b-per/fix-add-git-name
Browse files Browse the repository at this point in the history
Move git commands
  • Loading branch information
b-per authored Oct 5, 2023
2 parents 8b1fd23 + 6840e7e commit c84728b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/github/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
git config user.name "No name"
git init
git add *
git commit -m "Initial commit from Terraform and cruft"
git branch -M main
Expand Down

0 comments on commit c84728b

Please sign in to comment.