Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default to :git from :subversion #218

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/capify
Expand Up @@ -51,7 +51,7 @@ files = {
"config/deploy.rb" => 'set :application, "set your application name here" "config/deploy.rb" => 'set :application, "set your application name here"
set :repository, "set your repository location here" set :repository, "set your repository location here"


set :scm, :subversion set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`


role :web, "your web-server here" # Your HTTP server, Apache/etc role :web, "your web-server here" # Your HTTP server, Apache/etc
Expand Down
4 changes: 2 additions & 2 deletions lib/capistrano/recipes/deploy.rb
Expand Up @@ -22,7 +22,7 @@ def _cset(name, *args, &block)
# are not sufficient. # are not sufficient.
# ========================================================================= # =========================================================================


_cset :scm, :subversion _cset :scm, :git
_cset :deploy_via, :checkout _cset :deploy_via, :checkout


_cset(:deploy_to) { "/u/apps/#{application}" } _cset(:deploy_to) { "/u/apps/#{application}" }
Expand Down Expand Up @@ -213,7 +213,7 @@ def try_runner(*args)
task (if you want to perform the `restart' task separately). task (if you want to perform the `restart' task separately).


You will need to make sure you set the :scm variable to the source \ You will need to make sure you set the :scm variable to the source \
control software you are using (it defaults to :subversion), and the \ control software you are using (it defaults to :git), and the \
:deploy_via variable to the strategy you want to use to deploy (it \ :deploy_via variable to the strategy you want to use to deploy (it \
defaults to :checkout). defaults to :checkout).
DESC DESC
Expand Down