Changes default SCM from Subversion to git. This also seems to jive with the documentation on the wiki with respect to configuration variables.
Set default to :git from :subversion
+1 —Was wondering about this just the other day.
There's some work I'd like to do on top of this, but thanks for the kick in the ass. I'll look more closely at this in the coming days. (I want to make it clearer how to use local and remote repositories, and change some other defaults)
last try with this comment. :-)
Would something like this help?
_cset :scm, scm_default
# This defaults your :scm variable to svn as long as your have .svn
# (code is checked out from Subversion) in the directory where you run cap.
# If not, and you have .git instead (code is checked out from Git), then
# set :scm variable to git.
if File.exist? '.svn'
elsif File.exist? '.git'
I could certainly amend the commit with this behavior. What do you think @leehambley ?
I like that!