# File lib/chef/knife/core/cookbook_scm_repo.rb, line 125 def get_current_branch() ref = git("symbolic-ref HEAD").stdout ref.chomp.split('/')[2] end