feat: add option to overwrite git default branch

This commit is contained in:
Robert Kaussow 2021-05-28 13:27:25 +02:00
parent 90efc8aac7
commit bad027d2d2
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
2 changed files with 2 additions and 1 deletions

View File

@ -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' %}"
}

View File

@ -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