Closed mgrauer closed 8 years ago
Love it, for the command though how about the following?
git rev-parse --abbrev-ref HEAD 2>/dev/null || echo master
That should protect against junk getting into the minerva_version (i.e. if you're not in a git repo for some reason)
Good call, thanks @kotfic . This worked.
Assuming travis is green this LGTM
This feature will provision the ansible/vagrant version of minerva using the current git branch, to be set as minerva_version.
E.g. On my host, I'm on git branch
feature_foo_la_la
, and I provision a new VM. The minerva on that VM will be on git branchfeature_foo_la_la
as well. If my minerva git branch on my host ismaster
, then the VM minerva will be provisioned onmaster
as well.@kotfic
I got this working while QA-ing #315. Fixes #303.
PTAL.