[chef] git branch questions


Chronological Thread 
  • From: Jenn Fountain < >
  • To:
  • Subject: [chef] git branch questions
  • Date: Fri, 11 Apr 2014 10:54:22 -0400

Ohai,

I am using the following to check out code:

git '/opt/test' do
 repository 'git://github.com/Production/test.git'
 branch 'production'
 action :sync
 user ‘test'
end

this results in this:


 test]# git branch
* deploy
  staging


this command:

git clone -b production git://github.com/Production/test.git test2

 test2]# git branch
* production

This is causing concern because the devs aren’t 100% sure if this the 
production branch or not.  Is this normal? Did I miss something? Am I doing 
something wrong? I tried checkout_branch and get this:

undefined method `checkout_branch' for Chef::Resource::Git

Any help would be appreciated.





Archive powered by MHonArc 2.6.16.

§