class ChefCLI::CookbookProfiler::Git
def synchronized_remotes
def synchronized_remotes @synchronized_remotes ||= git!("branch -r --contains #{revision}").stdout.lines.map(&:strip) rescue Mixlib::ShellOut::ShellCommandFailed => e # We may have an "unborn" branch, i.e. one with no commits. if unborn_branch_ref [] else # if we got here, but verify_ref_cmd didn't error, we don't know why # the original git command failed, so re-raise. raise e end end