feat: add option to overwrite git default branch
This commit is contained in:
parent
90efc8aac7
commit
bad027d2d2
|
@ -10,5 +10,6 @@
|
||||||
"molecule_scenario": "centos-7",
|
"molecule_scenario": "centos-7",
|
||||||
"molecule_machine_size": "cx11",
|
"molecule_machine_size": "cx11",
|
||||||
"git_server": "gitea.rknet.org:ansible",
|
"git_server": "gitea.rknet.org:ansible",
|
||||||
|
"git_default_branch": "main",
|
||||||
"license_year": "{% now 'Europe/Berlin', '%Y' %}"
|
"license_year": "{% now 'Europe/Berlin', '%Y' %}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
if hash git 2>/dev/null; then
|
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
|
git remote add origin gitea@{{ cookiecutter.git_server }}/xoxys.{{ cookiecutter.role_name }}.git
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue