- From: Anthony Kong <
>
- To:
- Subject: [chef] Strange git behavior - any suggestion is welcome
- Date: Mon, 16 Mar 2015 18:04:37 +1100
Hi
I use this resource to check out my private git project onto to an ec2 instance.
role = ENV['TARGET_ROLE']
git "/home/zeeting/apps/docverter" do
repository "
:acme/project.git"
revision role == "uat" ? "dev" : "master"
action :sync
end
However when I log in to the box and check the branch, it prints this:
$ git branch
* deploy
dev
I don't understand why the branch is set to deploy. It must be a locally created branch because I do not even have a branch called deploy.
I am expecting the branch to be either 'dev' or 'master'
What can cause this behaviour?
Thanks, Tony
- [chef] Strange git behavior - any suggestion is welcome, Anthony Kong, 03/16/2015
Archive powered by MHonArc 2.6.16.