Sorry, but despite the doc: https://docs.chef.io/resource_git.html
and searching, I still struggling to display local branch correctly
Using git - it’s always the deploy branch name.
But I want it to be the tag/branch im currently using.
Can you be a little more specifc in what you’re trying to do and the steps you’re taking to get there?
It sounds like you need to ‘git checkout nameofyourlocalbranch’ and you should be on your local branch. I think some more details will help out the userbase here in determining what your problem is.
Yep, I want to do git checkout provision_type with chef
And it should fetch changes from repo if they are there
And locally, git status should return correct value, not the deploy branch