Browse Source

feat: add option to overwrite git default branch

master
Robert Kaussow 8 months ago
parent
commit
bad027d2d2
Signed by: xoxys GPG Key ID: 4E692A2EAECC03C0
  1. 1
      cookiecutter.json
  2. 2
      hooks/post_gen_project.sh

1
cookiecutter.json

@ -10,5 +10,6 @@
"molecule_scenario": "centos-7",
"molecule_machine_size": "cx11",
"git_server": "gitea.rknet.org:ansible",
"git_default_branch": "main",
"license_year": "{% now 'Europe/Berlin', '%Y' %}"
}

2
hooks/post_gen_project.sh

@ -1,7 +1,7 @@
#!/usr/bin/env sh
if hash git 2>/dev/null; then
git init
git init -b {{ cookiecutter.git_default_branch }}
git remote add origin gitea@{{ cookiecutter.git_server }}/xoxys.{{ cookiecutter.role_name }}.git
fi

Loading…
Cancel
Save