# File lib/chef/provider/git.rb, line 99 def checkout sha_ref = revision_sha Chef::Log.info "Checking out branch: #{@new_resource.revision} reference: #{sha_ref}" # checkout into a local branch rather than a detached HEAD run_command(run_options(:command => "#{git} checkout -b deploy #{sha_ref}", :cwd => @new_resource.destination)) end