# File lib/packaging/util/version.rb, line 8 def git_co(ref) Pkg::Util.in_project_root do %x{#{GIT} reset --hard ; #{GIT} checkout #{ref}} $?.success? or fail "Could not checkout #{ref} git branch to build package from...exiting" end end