```ruby
require 'mongrel_cluster/recipes'
load "config/db"
load "local/config/deploy.rb" if File.exists?("local/config/deploy.rb")

set :repository, "git://github.com/scottwillson/racing_on_rails.git"
set :site_local_repository, "git@butlerpress.com:#{application}.git"
set :branch, "master"
set :scm, "git"

set :deploy_to, "/usr/local/www/rails/#{application}"

set :user, "app"
set :use_sudo, false
set :scm_auth_cache, true
set :mongrel_conf, "/usr/local/etc/mongrel_cluster/#{application}.yml"

desc "Show source control status of files on server, in case anyone has edited them directly"
task :edits do
  run "cd #{current_path}; svn stat"
  run "cd #{current_path}/local; svn stat"
end

desc "Commit modified files on server to source control, in case anyone has edited them directly"
task :commit_edits do
  # Can't commit from Rails root without side-stepping log symlink, so just do local for now
  run "cd #{current_path}/local; svn commit -m 'Manual updates'"
end

namespace :deploy do
  desc "Custom deployment"
  task :after_update_code do
    run "git clone #{site_local_repository} #{release_path}/local"
    run "chmod -R g+w #{release_path}/local"
  end
end
```

Remove old SVN-based Cap tasks
user
```ruby
require 'mongrel_cluster/recipes'
load "config/db"
load "local/config/deploy.rb" if File.exists?("local/config/deploy.rb")

set :repository, "git://github.com/scottwillson/racing_on_rails.git"
set :site_local_repository, "git@butlerpress.com:#{application}.git"
set :branch, "master"
set :scm, "git"

set :deploy_to, "/usr/local/www/rails/#{application}"

set :user, "app"
set :use_sudo, false
set :scm_auth_cache, true
set :mongrel_conf, "/usr/local/etc/mongrel_cluster/#{application}.yml"

namespace :deploy do
  desc "Custom deployment"
  task :after_update_code do
    run "git clone #{site_local_repository} #{release_path}/local"
    run "chmod -R g+w #{release_path}/local"
  end
end
```
assistant