class Bundler::Source::Git
def checkout
def checkout unless File.exist?(path.join(".git")) FileUtils.mkdir_p(path.dirname) git %|clone --no-checkout "#{cache_path}" "#{path}"| end Dir.chdir(path) do git "fetch --force --quiet" git "reset --hard #{revision}" end end