Skip to content

Instantly share code, notes, and snippets.

@baroquebobcat
Created February 24, 2010 17:05
Show Gist options
  • Select an option

  • Save baroquebobcat/313621 to your computer and use it in GitHub Desktop.

Select an option

Save baroquebobcat/313621 to your computer and use it in GitHub Desktop.
#-------------------------------------------------
# I hope I don't have to use cvs w/ capistrano again, but if I do
# this makes capistrano always checkout head of the cvs repo even
# if it is not in the same subdirectory as the code it checks out.
# ensure capistrano just pulls HEAD rather than
# trying to figure out the latest checkout.
require 'capistrano/recipes/deploy/scm'
require 'capistrano/recipes/deploy/scm/base'
require 'capistrano/recipes/deploy/scm/cvs'
class Capistrano::Deploy::SCM::Cvs < ::Capistrano::Deploy::SCM::Base
def query_revision x,&block
"HEAD"
end
end
#-------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment